[PATCH] pinctrl: Add check for kcalloc

William Dean williamsukatube at gmail.com
Tue Jul 12 01:06:43 PDT 2022


thx :)

Linus Walleij <linus.walleij at linaro.org> 于2022年7月11日周一 21:04写道:

>
> On Sun, Jul 10, 2022 at 5:48 PM <williamsukatube at 163.com> wrote:
>
> > From: William Dean <williamsukatube at gmail.com>
> >
> > As the potential failure of the kcalloc(),
> > it should be better to check it in order to
> > avoid the dereference of the NULL pointer.
> >
> > Fixes: aa74c44be19c8 ("pinctrl: Add driver for Sunplus SP7021")
> > Reported-by: Hacash Robot <hacashRobot at santino.com>
> > Signed-off-by: William Dean <williamsukatube at gmail.com>
>
> Patch applied, tweaked the subject a bit,
>
> Yours,
> Linus Walleij



More information about the linux-arm-kernel mailing list