From: David S. Miller Date: Mon, 18 Sep 2006 08:47:13 +0000 (-0700) Subject: [OPENPROMIO]: Handle current_node being NULL correctly. X-Git-Tag: v2.6.18~12^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b9b64e6e89fc5a6ef220747115c5b7764614ca3f;p=pandora-kernel.git [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: David S. Miller --- Reading git-diff-tree failed