From: Timur Tabi Date: Wed, 7 May 2008 19:19:59 +0000 (+1000) Subject: [POWERPC] Add null pointer check to of_find_property X-Git-Tag: v2.6.26-rc3~24^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=64e4566f6d590fbb284da061b9b664c2486dd2de;p=pandora-kernel.git [POWERPC] Add null pointer check to of_find_property Update function of_find_property() to return NULL if the device_node passed to it is also NULL. Otherwise, passing NULL will cause a null pointer dereference. Without this, the legacy_serial driver will crash if there's no 'chosen' node in the device tree. Signed-off-by: Timur Tabi Signed-off-by: Paul Mackerras --- Reading git-diff-tree failed