[Nouveau] [PATCH][next] nouveau/svm: Use kvcalloc() instead of kvzalloc()
Gustavo A. R. Silva
gustavoars at kernel.org
Thu Oct 28 17:38:13 UTC 2021
On Thu, Oct 21, 2021 at 10:03:19AM -0700, Kees Cook wrote:
> On Wed, Sep 29, 2021 at 05:28:47AM +0200, Karol Herbst wrote:
> > Lack of documentation inside Linux here is a bit annoying, but do I
> > understand it correctly, that the main (and probably only) difference
> > is that kvcalloc checks whether the multiplication overflows and
> > returns NULL in this case?
>
> That's correct. :)
>
> > On Wed, Sep 29, 2021 at 12:21 AM Gustavo A. R. Silva
> > <gustavoars at kernel.org> wrote:
> > >
> > > Use 2-factor argument form kvcalloc() instead of kvzalloc().
> > >
> > > Link: https://github.com/KSPP/linux/issues/162
> > > Signed-off-by: Gustavo A. R. Silva <gustavoars at kernel.org>
>
> Reviewed-by: Kees Cook <keescook at chromium.org>
I'll take this in my -next tree.
Thanks
--
Gustavo
More information about the Nouveau
mailing list