summaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb-frontends
diff options
context:
space:
mode:
authorGustavo A. R. Silva2017-06-15 22:42:44 +0200
committerMauro Carvalho Chehab2017-06-20 15:07:37 +0200
commit88c0530f65e622a96a431b63e3feb707303bc9fc (patch)
tree4a0a0b72f074d9cc370b735e093783808006b687 /drivers/media/dvb-frontends
parent[media] ddbridge: hardware IDs for new C2T2 cards and other devices (diff)
downloadkernel-qcow2-linux-88c0530f65e622a96a431b63e3feb707303bc9fc.tar.gz
kernel-qcow2-linux-88c0530f65e622a96a431b63e3feb707303bc9fc.tar.xz
kernel-qcow2-linux-88c0530f65e622a96a431b63e3feb707303bc9fc.zip
[media] af9013: add check on af9013_wr_regs() return value
Check return value from call to af9013_wr_regs(), so in case of error print debug message and return. Addresses-Coverity-ID: 1227035 Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com> Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/dvb-frontends')
-rw-r--r--drivers/media/dvb-frontends/af9013.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/dvb-frontends/af9013.c b/drivers/media/dvb-frontends/af9013.c
index 51f942fc0669..dc7ccda41bcd 100644
--- a/drivers/media/dvb-frontends/af9013.c
+++ b/drivers/media/dvb-frontends/af9013.c
@@ -608,6 +608,8 @@ static int af9013_set_frontend(struct dvb_frontend *fe)
ret = af9013_wr_regs(state, 0xae00, coeff_lut[i].val,
sizeof(coeff_lut[i].val));
+ if (ret)
+ goto err;
}
/* program frequency control */