media: imx-jpeg: Fix possible null pointer dereference
authorMirela Rabulea <mirela.rabulea@nxp.com>
Mon, 27 Sep 2021 18:56:32 +0000 (20:56 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Nov 2021 18:16:14 +0000 (19:16 +0100)
commit4c2a4bad39e1645991f1d3f7e14c30fbdd5c775d
tree004262ba06ea1742cc7d800911408d55b3f38e66
parenta56e9d7609ee951df3087cd61ea08c62459851cc
media: imx-jpeg: Fix possible null pointer dereference

[ Upstream commit 83f5f0633b156c636f5249d3c10f2a9423dd4c96 ]

Found by Coverity scan.

Signed-off-by: Mirela Rabulea <mirela.rabulea@nxp.com>
Reviewed-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/platform/imx-jpeg/mxc-jpeg.c