linux-stable/drivers/staging
Li Huafei 02a97d9d7f 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>
2024-12-14 19:53:24 +01:00
..
axis-fifo staging: axis-fifo: initialize timeouts in init only 2023-05-24 17:32:40 +01:00
board
emxx_udc staging: emxx_udc: Add checks for dma_alloc_coherent() 2023-03-11 13:55:34 +01:00
fbtft staging: fbtft: ili9341: use macro FBTFT_REGISTER_SPI_DRIVER 2023-09-13 09:42:23 +02:00
fieldbus
gdm724x net: vlan: introduce skb_vlan_eth_hdr() 2023-12-20 17:00:16 +01:00
greybus greybus: arche-ctrl: move device table to its right location 2024-06-12 11:03:35 +02:00
iio staging: iio: frequency: ad9832: fix division by zero in ad9832_calc_freqreg() 2024-11-08 16:26:45 +01:00
ks7010 staging: ks7010: disable bh on tx_dev_lock 2024-08-29 17:30:30 +02:00
media media: atomisp: Add check for rgby_data memory allocation failure 2024-12-14 19:53:24 +01:00
most
nvec
octeon staging: octeon: Fix return type of cvm_oct_xmit and cvm_oct_xmit_pow 2022-09-24 13:07:31 +02:00
olpc_dcon
pi433 staging: pi433: fix memory leak with using debugfs_lookup() 2023-03-11 13:55:36 +01:00
qlge net: drop the weight argument from netif_napi_add 2022-09-28 18:57:14 -07:00
r8188eu drivers: staging: r8188eu: Fix sleep-in-atomic-context bug in rtw_join_timeout_handler 2022-12-31 13:32:38 +01:00
rtl8192e Revert "staging: rtl8192e: Replace macro RTL_PCI_DEVICE with PCI_DEVICE" 2023-06-14 11:15:34 +02:00
rtl8192u staging: rtl8192u: Fix use after free in ieee80211_rx() 2022-12-31 13:32:42 +01:00
rtl8712 staging: rtl8712: fix race condition 2023-09-06 21:27:01 +01:00
rtl8723bs drivers: staging: rtl8723bs: Fix locking in rtw_scan_timeout_handler() 2023-05-11 23:03:27 +09:00
rts5208
sm750fb Staging driver changes for 6.1-rc1 2022-10-08 09:19:24 -07:00
vc04_services staging: vchiq_arm: Use devm_kzalloc() for vchiq_arm_state allocation 2024-11-22 15:37:32 +01:00
vme_user staging: vme_user: added bound check to geoid 2024-10-17 15:22:17 +02:00
vt6655 staging: vt6655: fix some erroneous memory clean-up loops 2022-09-24 13:05:24 +02:00
vt6656
wlan-ng timers: Get rid of del_singleshot_timer_sync() 2024-05-17 11:56:12 +02:00
Kconfig Here's the main clk pull request for this merge window. We have some 2022-10-08 10:06:48 -07:00
Makefile Here's the main clk pull request for this merge window. We have some 2022-10-08 10:06:48 -07:00