lkml.org 
[lkml]   [2022]   [Jul]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH] pinctrl: Add check for kcalloc
thx :)

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

>
> On Sun, Jul 10, 2022 at 5:48 PM <williamsukatube@163.com> wrote:
>
> > From: William Dean <williamsukatube@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@santino.com>
> > Signed-off-by: William Dean <williamsukatube@gmail.com>
>
> Patch applied, tweaked the subject a bit,
>
> Yours,
> Linus Walleij

\
 
 \ /
  Last update: 2022-07-12 10:07    [W:0.073 / U:0.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site