summaryrefslogtreecommitdiffstats
path: root/drivers/sfi/Kconfig
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2018-12-22 13:43:33 +0100
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2018-12-26 10:50:36 +0100
commitf4747b9c68b8864cac32cddc45fdcfdfafb3397c (patch)
tree3c360edc65d35e30269f0a2a608c234fb7e0acd4 /drivers/sfi/Kconfig
parentdrivers: base: swnode: check if pointer p is NULL before dereferencing it (diff)
downloadlinux-f4747b9c68b8864cac32cddc45fdcfdfafb3397c.tar.xz
linux-f4747b9c68b8864cac32cddc45fdcfdfafb3397c.zip
drivers: base: swnode: check if swnode is NULL before dereferencing it
The to_software_mode() macro can potentially return NULL, so also add a NULL check on swnode before dereferencing it to avoid any NULL pointer dereferences. Detected by CoverityScan, CID#1476052 ("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 'drivers/sfi/Kconfig')
0 files changed, 0 insertions, 0 deletions