Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[media] cxd2820r: correct missing error checks

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

authored by

Antti Palosaari and committed by
Mauro Carvalho Chehab
050bf0fa 58b0ed25

+4
+4
drivers/media/dvb/frontends/cxd2820r_core.c
··· 314 314 } else if (c->delivery_system == SYS_DVBT2) { 315 315 /* DVB-T => DVB-T2 */ 316 316 ret = cxd2820r_sleep_t(fe); 317 + if (ret) 318 + break; 317 319 ret = cxd2820r_set_frontend_t2(fe, p); 318 320 } 319 321 break; ··· 326 324 } else if (c->delivery_system == SYS_DVBT) { 327 325 /* DVB-T2 => DVB-T */ 328 326 ret = cxd2820r_sleep_t2(fe); 327 + if (ret) 328 + break; 329 329 ret = cxd2820r_set_frontend_t(fe, p); 330 330 } 331 331 break;