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

2019-01-02 Thread Dan Carpenter
On Sat, Dec 22, 2018 at 12:43:33PM +, Colin King wrote: > From: Colin Ian King > > The macro to_software_mode can potentially return NULL, so also add > a null check on the swnode before dereferencing it to avoid any null > pointer dereferences. > > Detected by CoverityScan, CID#1476052 ("Ex

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

2018-12-27 Thread Rafael J. Wysocki
On Sat, Dec 22, 2018 at 1:43 PM Colin King wrote: > > From: Colin Ian King > > The macro to_software_mode can potentially return NULL, so also add > a null check on the swnode before dereferencing it to avoid any null > pointer dereferences. > > Detected by CoverityScan, CID#1476052 ("Explicit nu

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

2018-12-22 Thread Colin King
From: Colin Ian King The macro to_software_mode can potentially return NULL, so also add a null check on the swnode before dereferencing it to avoid any null pointer dereferences. Detected by CoverityScan, CID#1476052 ("Explicit null dereferenced") Fixes: 59abd83672f7 ("drivers: base: Introduci