summaryrefslogtreecommitdiff
path: root/drivers/platform
diff options
context:
space:
mode:
authorLi Huafei <lihuafei1@huawei.com>2024-11-04 22:50:51 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-12-14 19:53:24 +0100
commit02a97d9d7ff605fa4a1f908d1bd3ad8573234b61 (patch)
tree87fe4bbdab171e515e430deaf7c74451d32588cd /drivers/platform
parent18028c437ed435e59ce075dd2f20cf91f3a64a6d (diff)
downloadlinux-02a97d9d7ff605fa4a1f908d1bd3ad8573234b61.tar.gz
linux-02a97d9d7ff605fa4a1f908d1bd3ad8573234b61.tar.bz2
linux-02a97d9d7ff605fa4a1f908d1bd3ad8573234b61.zip
media: atomisp: Add check for rgby_data memory allocation failure
[ Upstream commit ed61c59139509f76d3592683c90dc3fdc6e23cd6 ] 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: a49d25364dfb ("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>
Diffstat (limited to 'drivers/platform')
0 files changed, 0 insertions, 0 deletions