lkml.org 
[lkml]   [2022]   [Sep]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH V2] efi: efibc: Guard against allocation failure
From
On 10/09/2022 01:56, Christophe JAILLET wrote:
> [...]
>> wdata = kmalloc(MAX_DATA_LEN * sizeof(efi_char16_t), GFP_KERNEL);
> Hi,
>
> even if mostly useless in this case, kmalloc_array()?
>
> Or certainly maybe even better, kstrndup()?
>
> CJ
>

Thanks! It's up to Ard, I could rework with this change if makes sense.
Cheers,


Guilherme

\
 
 \ /
  Last update: 2022-09-11 16:36    [W:0.080 / U:0.092 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site