Files
android_kernel_xiaomi_sm8450/drivers
Colin Ian King f4747b9c68 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: 59abd83672 (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>
2018-12-26 10:50:36 +01:00
..
2018-12-03 17:40:18 +01:00
2018-10-16 11:13:50 +02:00
2018-10-11 12:12:55 +02:00
2018-12-12 09:39:54 -05:00
2018-12-13 16:40:03 +00:00
2018-12-24 12:06:56 +01:00
2018-12-02 20:55:23 -08:00
2018-10-31 08:54:16 -07:00
2018-10-11 09:16:44 -07:00
2018-12-11 14:23:17 +01:00
2018-11-12 10:33:49 +01:00
2018-11-12 10:33:49 +01:00