commit | 64e4566f6d590fbb284da061b9b664c2486dd2de | [log] [tgz] |
---|---|---|
author | Timur Tabi <timur@freescale.com> | Thu May 08 05:19:59 2008 +1000 |
committer | Paul Mackerras <paulus@samba.org> | Thu May 15 20:49:49 2008 +1000 |
tree | f47b0659fa97f798fa05708e4ea9ecc3e6d136cc | |
parent | cec08e7a948326b01555be6311480aa08e637de2 [diff] |
[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 <timur@freescale.com> Signed-off-by: Paul Mackerras <paulus@samba.org>