linux/drivers/staging/media
Li Huafei 0c25ab93f2 media: atomisp: Add check for rgby_data memory allocation failure
[ Upstream commit ed61c59139 ]

In ia_css_3a_statistics_allocate(), there is no check on the allocation
result of the rgby_data memory. If rgby_data is not successfully
allocated, it may trigger the assert(host_stats->rgby_data) assertion in
ia_css_s3a_hmem_decode(). Adding a check to fix this potential issue.

Fixes: a49d25364d ("staging/atomisp: Add support for the Intel IPU v2")
Signed-off-by: Li Huafei <lihuafei1@huawei.com>
Reviewed-by: Andy Shevchenko <andy@kernel.org>
Link: https://lore.kernel.org/r/20241104145051.3088231-1-lihuafei1@huawei.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2024-12-05 14:01:34 +01:00
..
atomisp media: atomisp: Add check for rgby_data memory allocation failure 2024-12-05 14:01:34 +01:00
av7110 media fixes for v6.12-rc7 2024-11-08 07:41:27 -10:00
deprecated/atmel staging: media: atmel: use for_each_endpoint_of_node() 2024-08-09 07:56:39 +02:00
imx staging: media: imx: Remove duplicate Kconfig dependency 2024-04-10 15:15:30 +02:00
ipu3 staging: media: ipu3: Stop streaming in inverse order of starting 2024-08-31 09:40:42 +02:00
max96712 media: staging: max96712: Store format in subdev active state 2024-06-04 08:31:24 +02:00
meson/vdec media: meson: vdec: hevc: Refactor vdec_hevc_start and vdec_hevc_stop 2024-08-31 09:40:43 +02:00
omap4iss media: v4l: subdev: Switch to stream-aware state functions 2023-11-23 18:57:47 +01:00
rkvdec media: rkvdec: Hook the (TRY_)DECODER_CMD stateless ioctls 2023-11-23 13:59:33 +01:00
starfive staging: media: starfive: Add the dynamic resolution support 2024-08-25 01:42:01 +03:00
sunxi media: staging: sun6i-isp: Remove redundant printk 2024-05-03 11:07:33 +01:00
tegra-video media: staging: media: tegra-video: Use swap macro 2024-05-03 11:10:00 +01:00
Kconfig media: staging: media: starfive: camss: Add core driver 2023-11-16 12:13:25 +01:00
Makefile media: staging: media: starfive: camss: Add core driver 2023-11-16 12:13:25 +01:00