diff options
| author | Colin Ian King <[email protected]> | 2020-02-10 18:51:33 +0100 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2020-04-21 12:55:07 +0200 |
| commit | 96f3a9392799dd0f6472648a7366622ffd0989f3 (patch) | |
| tree | cf6a40655bf6b86b23b15cfe073da564b71405ae /tools/perf/scripts/python | |
| parent | a8648098948d9b04627408b0c51877720412dc9f (diff) | |
media: dvb: return -EREMOTEIO on i2c transfer failure.
Currently when i2c transfers fail the error return -EREMOTEIO
is assigned to err but then later overwritten when the tuner
attach call is made. Fix this by returning early with the
error return code -EREMOTEIO on i2c transfer failure errors.
If the transfer fails, an uninitialized value will be read from b2.
Addresses-Coverity: ("Unused value")
Fixes: fbfee8684ff2 ("V4L/DVB (5651): Dibusb-mb: convert pll handling to properly use dvb-pll")
Signed-off-by: Colin Ian King <[email protected]>
Signed-off-by: Sean Young <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions