diff options
| author | Mauro Carvalho Chehab <[email protected]> | 2024-10-15 10:25:09 +0000 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2024-10-18 08:43:03 +0000 |
| commit | 50b9fa751d1aef5d262bde871c70a7f44262f0bc (patch) | |
| tree | d3d1c46e6c426d6909356580d01d94cf81a40773 /drivers/usb/cdns3/cdns3-pci-wrap.c | |
| parent | media: cx24116: prevent overflows on SNR calculus (diff) | |
| download | kernel-50b9fa751d1aef5d262bde871c70a7f44262f0bc.tar.gz kernel-50b9fa751d1aef5d262bde871c70a7f44262f0bc.zip | |
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: 54450f591c99 ("[media] adv7604: driver for the Analog Devices ADV7604 video decoder")
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Reviewed-by: Hans Verkuil <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-pci-wrap.c')
0 files changed, 0 insertions, 0 deletions
