android_kernel_oneplus_msm8998/drivers/media/usb/dvb-usb-v2
Malcolm Priestley f6ea3133ca media: dvb-usb-v2: lmedm04: move ts2020 attach to dm04_lme2510_tuner
commit 7bf7a7116ed313c601307f7e585419369926ab05 upstream.

When the tuner was split from m88rs2000 the attach function is in wrong
place.

Move to dm04_lme2510_tuner to trap errors on failure and removing
a call to lme_coldreset.

Prevents driver starting up without any tuner connected.

Fixes to trap for ts2020 fail.
LME2510(C): FE Found M88RS2000
ts2020: probe of 0-0060 failed with error -11
...
LME2510(C): TUN Found RS2000 tuner
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN

Reported-by: Andrey Konovalov <andreyknvl@google.com>
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Tested-by: Andrey Konovalov <andreyknvl@google.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Cc: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-02-16 20:09:41 +01:00
..
af9015.c [media] dvb: Get rid of typedev usage for enums 2015-06-09 17:47:35 -03:00
af9015.h [media] dvb: Get rid of typedev usage for enums 2015-06-09 17:47:35 -03:00
af9035.c [media] af9035: add USB ID 07ca:0337 AVerMedia HD Volar (A867) 2015-05-30 12:08:50 -03:00
af9035.h [media] af9035: Add support for IT930x USB bridge 2014-09-23 21:49:42 -03:00
anysee.c [media] anysee: make sure loading modules is const 2014-10-21 08:49:11 -02:00
anysee.h [media] anysee: convert tda18212 tuner to I2C client 2014-09-21 19:59:13 -03:00
au6610.c
au6610.h
az6007.c
ce6230.c
ce6230.h
dvb_usb.h [media] dvb-usb-v2: create one media_dev per adapter 2015-02-26 09:52:25 -03:00
dvb_usb_common.h
dvb_usb_core.c dvb-usb-v2: avoid use-after-free 2017-04-21 09:30:07 +02:00
dvb_usb_urb.c
dvbsky.c [media] Add Terratec H7 Revision 4 to DVBSky driver 2015-10-03 11:08:12 -03:00
ec168.c
ec168.h
gl861.c
gl861.h
Kconfig [media] dvbsky: switch ts2022 to ts2020 driver 2015-04-02 22:25:52 -03:00
lmedm04.c media: dvb-usb-v2: lmedm04: move ts2020 attach to dm04_lme2510_tuner 2018-02-16 20:09:41 +01:00
lmedm04.h
Makefile [media] dvbsky: new driver to support DVBSky S860/S960 devices 2014-09-23 16:13:50 -03:00
mxl111sf-demod.c [media] dvb: Get rid of typedev usage for enums 2015-06-09 17:47:35 -03:00
mxl111sf-demod.h [media] media: remove emacs editor variables 2014-12-22 17:52:20 -02:00
mxl111sf-gpio.c [media] media: remove emacs editor variables 2014-12-22 17:52:20 -02:00
mxl111sf-gpio.h [media] media: remove emacs editor variables 2014-12-22 17:52:20 -02:00
mxl111sf-i2c.c [media] media: remove emacs editor variables 2014-12-22 17:52:20 -02:00
mxl111sf-i2c.h [media] media: remove emacs editor variables 2014-12-22 17:52:20 -02:00
mxl111sf-phy.c [media] media: remove emacs editor variables 2014-12-22 17:52:20 -02:00
mxl111sf-phy.h [media] media: remove emacs editor variables 2014-12-22 17:52:20 -02:00
mxl111sf-reg.h [media] media: remove emacs editor variables 2014-12-22 17:52:20 -02:00
mxl111sf-tuner.c [media] media: remove emacs editor variables 2014-12-22 17:52:20 -02:00
mxl111sf-tuner.h [media] media: remove emacs editor variables 2014-12-22 17:52:20 -02:00
mxl111sf.c [media] media: remove emacs editor variables 2014-12-22 17:52:20 -02:00
mxl111sf.h [media] media: remove emacs editor variables 2014-12-22 17:52:20 -02:00
rtl28xxu.c media updates for v4.4-rc1 2015-11-05 12:05:15 -08:00
rtl28xxu.h [media] rtl28xxu: fix control message flaws 2015-10-22 15:48:27 -02:00
usb_urb.c