[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87ldmdo23s.fsf@minerva.mail-host-address-is-not-set>
Date: Wed, 17 Sep 2025 11:33:11 +0200
From: Javier Martinez Canillas <javierm@...hat.com>
To: James Flowers <bold.zone2373@...tmail.com>,
maarten.lankhorst@...ux.intel.com, mripard@...nel.org,
tzimmermann@...e.de, airlied@...il.com, simona@...ll.ch,
skhan@...uxfoundation.com
Cc: James Flowers <bold.zone2373@...tmail.com>,
dri-devel@...ts.freedesktop.org, linux-kernel@...r.kernel.org,
linux-kernel-mentees@...ts.linux.dev
Subject: Re: [PATCH] drm/ssd130x: Use kmalloc_array() instead of kmalloc()
James Flowers <bold.zone2373@...tmail.com> writes:
Hello James,
Thanks for the patch.
> Documentation/process/deprecated.rst recommends against the use of
> kmalloc with dynamic size calculations due to the risk of overflow and
> smaller allocation being made than the caller was expecting.
> kmalloc_array avoids this issue.
>
> Signed-off-by: James Flowers <bold.zone2373@...tmail.com>
> ---
Reviewed-by: Javier Martinez Canillas <javierm@...hat.com>
--
Best regards,
Javier Martinez Canillas
Core Platforms
Red Hat
Powered by blists - more mailing lists