diff options
| author | Andy Shevchenko <[email protected]> | 2020-07-16 18:27:47 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2020-07-23 15:04:28 +0000 |
| commit | 29c4a54bc645c8b6745eeb58519e9ad794ceb419 (patch) | |
| tree | 37ac94175f772e0597749dbbc84828610b7722d4 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
| parent | Linux 5.8-rc6 (diff) | |
| download | kernel-29c4a54bc645c8b6745eeb58519e9ad794ceb419.tar.gz kernel-29c4a54bc645c8b6745eeb58519e9ad794ceb419.zip | |
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: 114dbb4fa7c4 ("drivers property: When no children in primary, try secondary")
Reported-by: Maxim Levitsky <[email protected]>
Signed-off-by: Andy Shevchenko <[email protected]>
Tested-by: Maxim Levitsky <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions
