From: Antti Palosaari Date: Wed, 25 May 2011 20:25:53 +0000 (-0300) Subject: [media] cxd2820r: correct missing error checks X-Git-Tag: MMI-PSA29.97-13-9~18729^2~416 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=050bf0faa833028f30ed3ad6a8fc5e51994dabfe;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git [media] cxd2820r: correct missing error checks Signed-off-by: Antti Palosaari Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/dvb/frontends/cxd2820r_core.c b/drivers/media/dvb/frontends/cxd2820r_core.c index 903cbdbbc73b..d416e85589e1 100644 --- 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;