[patch] mfd: ab8500-debugfs: move dereference after check for NULL

Lee Jones lee.jones at linaro.org
Tue Nov 19 03:24:10 EST 2013


On Tue, 19 Nov 2013, Linus Walleij wrote:

> On Wed, Nov 13, 2013 at 8:40 AM, Dan Carpenter <dan.carpenter at oracle.com> wrote:
> 
> > We dereference "desc" before check if it is NULL.  I've shifted it
> > around so we check first before dereferencing.
> >
> > Signed-off-by: Dan Carpenter <dan.carpenter at oracle.com>
> > ---
> > I am not able to compile this.
> 
> Looks and compiles good.
> Tested-by: Linus Walleij <linus.walleij at linaro.org>
> 
> Lee are you queueing this?

This one slipped through the net, thanks for bringing it to my attention.

Applied, thanks.

-- 
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog



More information about the linux-arm-kernel mailing list