diff options
author | Andy Shevchenko | 2020-07-16 21:27:47 +0300 |
---|---|---|
committer | Greg Kroah-Hartman | 2020-07-23 17:04:28 +0200 |
commit | 29c4a54bc645c8b6745eeb58519e9ad794ceb419 (patch) | |
tree | 37ac94175f772e0597749dbbc84828610b7722d4 /Documentation/parisc | |
parent | ba47d845d715a010f7b51f6f89bae32845e6acb7 (diff) |
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 <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>
Diffstat (limited to 'Documentation/parisc')
0 files changed, 0 insertions, 0 deletions