]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[SPARC]: Fix EBUS use of uninitialized variable.
authorDavid S. Miller <davem@sunset.davemloft.net>
Thu, 27 Sep 2007 20:09:28 +0000 (13:09 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Thu, 27 Sep 2007 20:09:28 +0000 (13:09 -0700)
commit9c908f97d0f9aee32fa6d4b0a44c4c5d0ccab2b0
tree4c863da394fd58a51cdbc4c0386560fe994ee262
parentff0ce6845bc18292e80ea40d11c3d3a539a3fc5e
[SPARC]: Fix EBUS use of uninitialized variable.

If of_get_property() fails, it returns NULL and the 'len'
parameter is undefined.  So we need to explicitly set len
to zero in such cases.

Noticed by Al Viro.

Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/kernel/ebus.c
arch/sparc64/kernel/ebus.c