Re: [PATCH v1] ALSA: usb-audio: Use kmemdup_array instead of kmemdup for multiple allocation

From: Takashi Iwai
Date: Mon Aug 26 2024 - 04:34:07 EST


On Mon, 26 Aug 2024 06:34:54 +0200,
Shen Lichuan wrote:
>
> Let the kmemdup_array() take care about multiplication
> and possible overflows.
>
> Using kmemdup_array() is more appropriate and makes the code
> easier to audit.
>
> Signed-off-by: Shen Lichuan <shenlichuan@xxxxxxxx>

Thanks, applied now.


Takashi