diff options
author | Colin Ian King <colin.king@canonical.com> | 2019-10-25 16:33:39 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-01-12 13:24:16 +0300 |
commit | 8c450fb216d528f81eea84cb43c973ce9f7c98b3 (patch) | |
tree | caf22d10be3ca97e8ca7840a89b7be46b14d75c1 /include/linux/8250_pci.h | |
parent | 6e01d07c5854ff35ea0234b1134e96552ebf51f9 (diff) | |
download | linux-8c450fb216d528f81eea84cb43c973ce9f7c98b3.tar.xz |
media: flexcop-usb: ensure -EIO is returned on error condition
commit 74a96b51a36de4d86660fbc56b05d86668162d6b upstream.
An earlier commit hard coded a return 0 to function flexcop_usb_i2c_req
even though the an -EIO was intended to be returned in the case where
ret != buflen. Fix this by replacing the return 0 with the return of
ret to return the error return code.
Addresses-Coverity: ("Unused value")
Fixes: b430eaba0be5 ("[media] flexcop-usb: don't use stack for DMA")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/8250_pci.h')
0 files changed, 0 insertions, 0 deletions