]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
staging: media: atomisp: use kmalloc_array() for sh_css_blob_info
authorLin YuChen <starpt.official@gmail.com>
Fri, 13 Mar 2026 17:55:26 +0000 (01:55 +0800)
committerSakari Ailus <sakari.ailus@linux.intel.com>
Wed, 20 May 2026 10:21:40 +0000 (13:21 +0300)
commit4d542f256cf2ff23a4a2c5411cbdf9af0191b8ca
tree49d7b3aa1ac87c30e3f2cbf0b0f260334ad31cb0
parentde1844c0da4ad2987bca07d299402a6c73ba902d
staging: media: atomisp: use kmalloc_array() for sh_css_blob_info

Replace the open-coded multiplication in kmalloc() with kmalloc_array()
to provide overflow protection and improve code readability.

Signed-off-by: Lin YuChen <starpt.official@gmail.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
drivers/staging/media/atomisp/pci/sh_css_firmware.c