kernel_samsung_a53x/drivers/media
Mauro Carvalho Chehab fa3661d3c2 media: adv7604: prevent underflow condition when reporting colorspace
[ Upstream commit 50b9fa751d1aef5d262bde871c70a7f44262f0bc ]

Currently, adv76xx_log_status() reads some date using
io_read() which may return negative values. The current logic
doesn't check such errors, causing colorspace to be reported
on a wrong way at adv76xx_log_status(), as reported by Coverity.

If I/O error happens there, print a different message, instead
of reporting bogus messages to userspace.

Fixes: 54450f591c99 ("[media] adv7604: driver for the Analog Devices ADV7604 video decoder")
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Reviewed-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-30 02:33:23 +01:00
..
cec Revert "media: cec: core: avoid confusing "transmit timed out" message" 2024-11-19 14:03:20 +01:00
common Revert "media: videobuf2-core: clear memory related fields in __vb2_plane_dmabuf_put()" 2024-11-24 00:22:58 +01:00
dvb-core media: dvb_frontend: don't play tricks with underflow values 2024-11-30 02:33:23 +01:00
dvb-frontends media: stb0899_algo: initialize cfr before using it 2024-11-30 02:33:23 +01:00
firewire
i2c media: adv7604: prevent underflow condition when reporting colorspace 2024-11-30 02:33:23 +01:00
mc media: mc: mark the media devnode as registered from the, start 2024-11-19 12:27:17 +01:00
mmc
pci Revert "media: solo6x10: replace max(a, min(b, c)) by clamp(b, a, c)" 2024-11-24 00:23:52 +01:00
platform Revert "media: qcom: camss: Add check for v4l2_fwnode_endpoint_parse" 2024-11-24 00:23:42 +01:00
radio media: radio-isa: use dev_name to fill in bus_info 2024-11-23 23:20:44 +01:00
rc lirc: rc_dev_get_from_fd(): fix file leak 2024-11-23 23:20:18 +01:00
spi
test-drivers Revert "media: vivid: fix wrong sizeimage value for mplane" 2024-11-24 00:23:43 +01:00
tuners media: xc4000: Fix atomicity violation in xc4000_get_frequency 2024-11-19 09:22:15 +01:00
usb Revert "media: uvcvideo: Use entity get_cur in uvc_ctrl_set" 2024-11-24 00:23:54 +01:00
v4l2-core media: v4l2-core: hold videodev_lock until dev reg, finishes 2024-11-19 12:27:17 +01:00
Kconfig
Makefile