diff options
author | Colin Ian King <colin.king@canonical.com> | 2018-12-22 12:49:39 +0000 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2018-12-26 10:48:01 +0100 |
commit | 1d8f062ebc972053318c3a0e0470c7e0ddc1ebee (patch) | |
tree | c80d228d44f4fc66ca5a597de9ec74daa16e73ba /tools/perf/scripts/python/syscall-counts.py | |
parent | d8924c0d76aaa52e4811b5c64115d9a7f36cc73a (diff) |
drivers: base: swnode: check if pointer p is NULL before dereferencing it
The pointer p can be potentially NULL as macro to_software_node can
return NULL.
Add null check on p before dereferencing it to avoid any NULL pointer
dereferences.
Detected by CoverityScan, CID#1476039 ("Explicit null dereferenced")
Fixes: 59abd83672f7 (drivers: base: Introducing software nodes to the firmware node framework)
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions