linux/drivers/base
Andy Shevchenko 29c4a54bc6 device property: Avoid NULL pointer dereference in device_get_next_child_node()
When we have no primary fwnode or when it's a software node, we may end up
in the situation when fwnode is a NULL pointer. There is no point to look for
secondary fwnode in such case. Add a necessary check to a condition.

Fixes: 114dbb4fa7 ("drivers property: When no children in primary, try secondary")
Reported-by: Maxim Levitsky <mlevitsk@redhat.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Tested-by: Maxim Levitsky <mlevitsk@redhat.com>
Link: https://lore.kernel.org/r/20200716182747.54929-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-07-23 17:04:28 +02:00
..
firmware_loader firmware_loader: change enum fw_opt to u32 2020-05-27 12:20:47 +02:00
power PM: sleep: core: mark 2 functions as __init to save some memory 2020-06-23 17:35:33 +02:00
regmap regmap: Fixes for v5.8 2020-07-17 09:58:18 -07:00
test drivers: base: default KUNIT_* fragments to KUNIT_ALL_TESTS 2020-06-01 14:24:25 -06:00
arch_topology.c arm64 updates for 5.7: 2020-03-31 10:05:01 -07:00
attribute_container.c
base.h driver core: Don't do deferred probe in parallel with kernel_init thread 2020-07-10 15:20:38 +02:00
bus.c
cacheinfo.c
class.c
component.c component: Silence bind error on -EPROBE_DEFER 2020-04-28 17:54:15 +02:00
container.c
core.c driver core: Avoid deferred probe due to fw_devlink_pause/resume() 2020-07-10 15:20:38 +02:00
cpu.c x86/speculation: Add Special Register Buffer Data Sampling (SRBDS) mitigation 2020-04-20 12:19:22 +02:00
dd.c driver core: Don't do deferred probe in parallel with kernel_init thread 2020-07-10 15:20:38 +02:00
devcon.c
devcoredump.c
devres.c
devtmpfs.c
driver.c
firmware.c
hypervisor.c
init.c
isa.c
Kconfig drivers: base: default KUNIT_* fragments to KUNIT_ALL_TESTS 2020-06-01 14:24:25 -06:00
Makefile
map.c
memory.c drivers/base/memory.c: cache memory blocks in xarray to accelerate lookup 2020-06-03 20:09:49 -07:00
module.c
node.c Merge branch 'akpm' (patches from Andrew) 2020-06-02 12:21:36 -07:00
pinctrl.c
platform-msi.c platform-msi: Fix typos in comment 2020-05-18 10:28:30 +01:00
platform.c Driver core patches for 5.8-rc1 2020-06-07 10:53:36 -07:00
property.c device property: Avoid NULL pointer dereference in device_get_next_child_node() 2020-07-23 17:04:28 +02:00
soc.c driver/base/soc: Use kobj_to_dev() API 2020-04-28 21:05:42 +02:00
swnode.c Driver core patches for 5.8-rc1 2020-06-07 10:53:36 -07:00
syscore.c
topology.c
transport_class.c