[PATCH] pinctrl: zte: fix dereference of 'data' in zx_set_mux()
Linus Walleij
linus.walleij at linaro.org
Mon Jul 31 06:13:40 PDT 2017
On Sat, Jul 1, 2017 at 5:45 AM, Shawn Guo <shawnguo at kernel.org> wrote:
> From: Shawn Guo <shawn.guo at linaro.org>
>
> It fixes the following Smatch complaint:
>
> drivers/pinctrl/zte/pinctrl-zx.c:76 zx_set_mux()
> warn: variable dereferenced before check 'data' (see line 67)
>
> Reported-by: Dan Carpenter <dan.carpenter at oracle.com>
> Fixes: cbff0c4d27f4 ("pinctrl: add ZTE ZX pinctrl driver support")
> Signed-off-by: Shawn Guo <shawn.guo at linaro.org>
Patch applied for fixes.
Yours,
Linus Walleij
More information about the linux-arm-kernel
mailing list