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

Linus Walleij linus.walleij at linaro.org
Tue Nov 19 03:07:36 EST 2013


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?

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list