Skip to content
Commit 50b9fa75 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab
Browse files

media: adv7604: prevent underflow condition when reporting colorspace



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: 54450f59 ("[media] adv7604: driver for the Analog Devices ADV7604 video decoder")
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Reviewed-by: default avatarHans Verkuil <hverkuil@xs4all.nl>
parent 576a307a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment