[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <Zsy6mvOkn7PkrUuv@google.com>
Date: Mon, 26 Aug 2024 10:25:46 -0700
From: Dmitry Torokhov <dmitry.torokhov@...il.com>
To: Shen Lichuan <shenlichuan@...o.com>
Cc: mitr@...ny.cz, linux-input@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v1] Input: wistron_btns - use kmemdup_array instead of
kmemdup for multiple allocation
On Mon, Aug 26, 2024 at 12:52:53PM +0800, 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@...o.com>
Applied, thank you.
--
Dmitry
Powered by blists - more mailing lists