Re: [PATCH] ASoC: Intel: Skylake: fix dereference before NULL check on ebus

2017-04-19 Thread Colin Ian King
On 19/04/17 14:32, Dan Carpenter wrote: > On Wed, Apr 19, 2017 at 01:16:13PM +0100, Colin King wrote: >> From: Colin Ian King >> >> ebus is being NULL checked however it is being dereferenced >> earlier on the assignment bus = ebus_to_hbus(ebus). Fix this >> by moving the assignment to after the

Re: [PATCH] ASoC: Intel: Skylake: fix dereference before NULL check on ebus

2017-04-19 Thread Dan Carpenter
On Wed, Apr 19, 2017 at 01:16:13PM +0100, Colin King wrote: > From: Colin Ian King > > ebus is being NULL checked however it is being dereferenced > earlier on the assignment bus = ebus_to_hbus(ebus). Fix this > by moving the assignment to after the NULL check on ebus to > avoid a NULL pointer d

[PATCH] ASoC: Intel: Skylake: fix dereference before NULL check on ebus

2017-04-19 Thread Colin King
From: Colin Ian King ebus is being NULL checked however it is being dereferenced earlier on the assignment bus = ebus_to_hbus(ebus). Fix this by moving the assignment to after the NULL check on ebus to avoid a NULL pointer dereference error. Fixes: c5a76a246989c8 ("ASoC: Intel: Skylake: Add shu