media: coda: jpeg: set buffer error flag when header parsing fails
authorPhilipp Zabel <p.zabel@pengutronix.de>
Wed, 6 Apr 2022 08:53:51 +0000 (09:53 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sun, 24 Apr 2022 07:46:56 +0000 (08:46 +0100)
commitd2cc715a56df87a9422740d2d62fbf8f5ea4a33b
treeffd528c0a9ca89731f8ad58665d804ba9a20ca6d
parent7e32aab9f47d54326ef5aab3a38f70727fae4c23
media: coda: jpeg: set buffer error flag when header parsing fails

If decoding fails because  the output buffer does not contain a
valid header, set the error flag on the returned capture buffer.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/chips-media/coda-jpeg.c