Timur Tabi 64e4566f6d [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>
2008-05-15 20:49:49 +10:00
..
2008-05-06 11:43:44 -04:00
2008-03-13 22:53:29 +01:00
2008-04-21 22:38:45 +00:00
2008-05-05 15:08:38 -07:00
2008-04-29 08:06:27 -07:00
2008-05-12 16:46:50 +01:00
2008-05-05 12:36:34 -07:00
2008-05-01 08:03:59 -07:00
2008-04-29 08:06:18 -07:00
2008-05-12 07:27:38 -07:00
2008-05-01 08:04:00 -07:00
2008-05-11 20:37:06 +02:00
2008-05-05 00:33:58 -07:00
2008-05-01 08:04:01 -07:00
2008-04-23 21:25:35 -04:00
2008-04-24 23:57:33 +02:00
2008-04-30 08:29:52 -07:00
2008-04-30 08:29:52 -07:00