linux/drivers/gpu/drm/solomon
James Flowers 940dd88c5f
drm/ssd130x: Use kmalloc_array() instead of kmalloc()
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@fastmail.com>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://lore.kernel.org/r/20250914073841.69582-1-bold.zone2373@fastmail.com
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
History 2025-09-17 12:16:19 +02:00
..
Kconfig drm/solomon: Run DRM default client setup 2024-09-26 09:31:28 +02:00
Makefile drm/solomon: Add SSD130x OLED displays SPI support 2022-04-20 18:48:17 +02:00
ssd130x-i2c.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ssd130x-spi.c drm/ssd130x: Remove the use of dev_err_probe() 2025-09-01 16:09:19 +02:00
ssd130x.c drm/ssd130x: Use kmalloc_array() instead of kmalloc() 2025-09-17 12:16:19 +02:00
ssd130x.h drm/ssd130x: Add support for the SSD133x OLED controller family 2024-01-01 13:03:05 +01:00