]> git.baikalelectronics.ru Git - kernel.git/commit
media: coda: Add check for dcoda_iram_alloc
authorJiasheng Jiang <jiasheng@iscas.ac.cn>
Thu, 17 Nov 2022 06:56:52 +0000 (14:56 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 31 Dec 2022 12:32:25 +0000 (13:32 +0100)
commitda0b137093ada269b46356d405f25db42c13eedd
tree902ce2dcadca29d976ca606419f42f6a97d38a0f
parent4f6989d337cd40638cd55e17119c5cdf79c2e597
media: coda: Add check for dcoda_iram_alloc

[ Upstream commit e16343d26bb4aac6ef33ca1595591d3647505918 ]

As the coda_iram_alloc may return NULL pointer,
it should be better to check the return value
in order to avoid NULL poineter dereference,
same as the others.

Fixes: f6f174ef5ea2 ("[media] coda: simplify IRAM setup")
Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/platform/chips-media/coda-bit.c