media: platform: ti: Add missing check for devm_regulator_get
authorJiasheng Jiang <jiasheng@iscas.ac.cn>
Wed, 4 Jan 2023 08:55:37 +0000 (09:55 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Mar 2023 08:33:41 +0000 (09:33 +0100)
commitbc868148531200ea3c79804ef4c843a873a2317a
treeaddc8abb7b1cd22383ca24cd9a99522fce8a6b9f
parent8a316112fd97690e5138212da8d4101958b27e4f
media: platform: ti: Add missing check for devm_regulator_get

[ Upstream commit da8e05f84a11c3cc3b0ba0a3c62d20e358002d99 ]

Add check for the return value of devm_regulator_get since it may return
error pointer.

Fixes: 448de7e7850b ("[media] omap3isp: OMAP3 ISP core")
Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/platform/ti/omap3isp/isp.c