linux/drivers/media
Daniel Scheller 62229de19f media: dvb-core: always call invoke_release() in fe_free()
Follow-up to: ead666000a ("media: dvb_frontend: only use kref after initialized")

The aforementioned commit fixed refcount OOPSes when demod driver attaching
succeeded but tuner driver didn't. However, the use count of the attached
demod drivers don't go back to zero and thus couldn't be cleanly unloaded.
Improve on this by calling dvb_frontend_invoke_release() in
__dvb_frontend_free() regardless of fepriv being NULL, instead of returning
when fepriv is NULL. This is safe to do since _invoke_release() will check
for passed pointers being valid before calling the .release() function.

[mchehab@s-opensource.com: changed the logic a little bit to reduce
 conflicts with another bug fix patch under review]
Fixes: ead666000a ("media: dvb_frontend: only use kref after initialized")
Signed-off-by: Daniel Scheller <d.scheller@gmx.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2017-11-07 05:39:41 -05:00
..
cec media: cec-pin: use IS_ERR instead of PTR_ERR_OR_ZERO 2017-10-31 07:21:23 -04:00
common media: saa7146: Convert timers to use timer_setup() 2017-10-31 06:40:08 -04:00
dvb-core media: dvb-core: always call invoke_release() in fe_free() 2017-11-07 05:39:41 -05:00
dvb-frontends media: drxd: make const array fastIncrDecLUT static 2017-11-07 04:00:31 -05:00
firewire
i2c media: imx274: fix missing return assignment from call to imx274_mode_regs 2017-11-07 03:05:40 -05:00
mmc
pci media: cx88: make const arrays default_addr_list and pvr2000_addr_list static 2017-11-07 04:02:53 -05:00
platform media: camss-vfe: always initialize reg at vfe_set_xbar_cfg() 2017-11-01 12:25:59 -04:00
radio media: radio-raremono: remove redundant initialization of freq 2017-10-31 07:26:39 -04:00
rc media: rc: mceusb: add support for 15f4:0135 2017-10-31 06:35:32 -04:00
spi
tuners media: dvb: i2c transfers over usb cannot be done from stack 2017-09-23 07:21:33 -04:00
usb media: usb: dvb-usb-v2: dvb_usb_core: remove redundant code in dvb_usb_fe_sleep 2017-11-07 04:42:27 -05:00
v4l2-core media: v4l: async: fix unregister for implicitly registered sub-device notifiers 2017-11-07 03:07:20 -05:00
Kconfig media: rc-core: do not depend on MEDIA_SUPPORT 2017-08-20 09:39:36 -04:00
Makefile [media] cec: select CEC_CORE instead of depend on it 2017-06-04 15:23:33 -03:00
media-device.c media: drop use of MEDIA_API_VERSION 2017-08-08 06:03:15 -04:00
media-devnode.c
media-entity.c [media] media: Check for active and has_no_links overrun 2017-10-04 17:16:14 -03:00