https://github.com/torvalds/linux
Revision b9b64e6e89fc5a6ef220747115c5b7764614ca3f authored by David S. Miller on 18 September 2006, 08:47:13 UTC, committed by David S. Miller on 18 September 2006, 08:47:13 UTC
If the user tries to traverse to the next node of the
last node, we get NULL in current_node and a zero phandle
returned.  That's fine, but if the user tries to obtain
properties in that state, we try to dereference a NULL
pointer in the downcall to the of_*() routines.

So protect against that.

Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 803db24
History
Tip revision: b9b64e6e89fc5a6ef220747115c5b7764614ca3f authored by David S. Miller on 18 September 2006, 08:47:13 UTC
[OPENPROMIO]: Handle current_node being NULL correctly.
Tip revision: b9b64e6
File Mode Size
Documentation
arch
block
crypto
drivers
fs
include
init
ipc
kernel
lib
mm
net
scripts
security
sound
usr
.gitignore -rw-r--r-- 542 bytes
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 87.4 KB
Kbuild -rw-r--r-- 1.2 KB
MAINTAINERS -rw-r--r-- 71.0 KB
Makefile -rw-r--r-- 46.5 KB
README -rw-r--r-- 16.2 KB
REPORTING-BUGS -rw-r--r-- 3.0 KB

README

back to top