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

[media] tda10071: do not get_frontend() when not ready

This is a bit hack, but returning error when driver is not tuned yet
causes DVBv5 zap stop polling DVBv5 statistics. Thus return 0 even
callback is called during invalid device state.

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

authored by

Antti Palosaari and committed by
Mauro Carvalho Chehab
4c4acb7a e14432a5

+1 -1
+1 -1
drivers/media/dvb-frontends/tda10071.c
··· 717 717 u8 buf[5], tmp; 718 718 719 719 if (!dev->warm || !(dev->fe_status & FE_HAS_LOCK)) { 720 - ret = -EFAULT; 720 + ret = 0; 721 721 goto error; 722 722 } 723 723