WSL2-Linux-Kernel/drivers/of
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
..
Kconfig [POWERPC] i2c: Fix build breakage introduced by OF helpers 2008-04-20 13:03:35 +10:00
Makefile [POWERPC] i2c: Fix build breakage introduced by OF helpers 2008-04-20 13:03:35 +10:00
base.c [POWERPC] Add null pointer check to of_find_property 2008-05-15 20:49:49 +10:00
device.c [POWERPC] Add of_find_matching_node() helper function 2008-01-17 14:53:22 +11:00
gpio.c [POWERPC] OF helpers for the GPIO API 2008-04-17 07:46:11 +10:00
of_i2c.c [POWERPC] drivers/of/of_i2c.c: Add MODULE_LICENSE 2008-04-24 20:58:01 +10:00
platform.c [POWERPC] Create and hook up of_platform_device_shutdown 2008-02-06 16:29:59 +11:00