projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
58b0ed2
)
[media] cxd2820r: correct missing error checks
author
Antti Palosaari
<crope@iki.fi>
Wed, 25 May 2011 20:25:53 +0000
(17:25 -0300)
committer
Mauro Carvalho Chehab
<mchehab@redhat.com>
Wed, 27 Jul 2011 20:52:17 +0000
(17:52 -0300)
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/frontends/cxd2820r_core.c
patch
|
blob
|
history
diff --git
a/drivers/media/dvb/frontends/cxd2820r_core.c
b/drivers/media/dvb/frontends/cxd2820r_core.c
index 903cbdbbc73b349e5edca84819464a08f4387481..d416e85589e1150fe57c7b204a86b6c62ef8b6d2 100644
(file)
--- a/
drivers/media/dvb/frontends/cxd2820r_core.c
+++ b/
drivers/media/dvb/frontends/cxd2820r_core.c
@@
-314,6
+314,8
@@
static int cxd2820r_set_frontend(struct dvb_frontend *fe,
} else if (c->delivery_system == SYS_DVBT2) {
/* DVB-T => DVB-T2 */
ret = cxd2820r_sleep_t(fe);
+ if (ret)
+ break;
ret = cxd2820r_set_frontend_t2(fe, p);
}
break;
@@
-324,6
+326,8
@@
static int cxd2820r_set_frontend(struct dvb_frontend *fe,
} else if (c->delivery_system == SYS_DVBT) {
/* DVB-T2 => DVB-T */
ret = cxd2820r_sleep_t2(fe);
+ if (ret)
+ break;
ret = cxd2820r_set_frontend_t(fe, p);
}
break;