lkml.org 
[lkml]   [2024]   [Mar]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] pstore/zone: Don't clear memory twice
Date
On Sat, 09 Mar 2024 09:24:27 +0100, Christophe JAILLET wrote:
> There is no need to call memset(..., 0, ...) on memory allocated by
> kcalloc(). It is already zeroed.
>
> Remove the redundant call.
>
>

Applied to for-next/pstore, thanks!

[1/1] pstore/zone: Don't clear memory twice
https://git.kernel.org/kees/c/c8d25d696f52

Take care,

--
Kees Cook


\
 
 \ /
  Last update: 2024-05-27 15:43    [W:0.418 / U:0.264 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site