Skip to content
Commit b9b64e6e authored by David S. Miller's avatar David S. Miller
Browse files

[OPENPROMIO]: Handle current_node being NULL correctly.



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: default avatarDavid S. Miller <davem@davemloft.net>
parent 803db244
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment