Re: [PATCH] drivers: base: swnode: check if pointer p is null before dereferencing it

2018-12-27 Thread Rafael J. Wysocki
On Sat, Dec 22, 2018 at 1:49 PM Colin King wrote: > > From: Colin Ian King > > The pointer p can be potentially null 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 ("Explici

[PATCH] drivers: base: swnode: check if pointer p is null before dereferencing it

2018-12-22 Thread Colin King
From: Colin Ian King The pointer p can be potentially null 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: Intro