]> git.karo-electronics.de Git - linux-beck.git/commit
[media] dvb-usb-v2: postpone removal of media_device
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 29 Dec 2015 18:45:21 +0000 (16:45 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 11 Jan 2016 14:19:26 +0000 (12:19 -0200)
commit33c6853347c13b7cf8d11c12714cd855a84bc992
tree5e6256d53617be98004e29f0afbd8a9852217a3f
parent0230d60e4661d9ced6fb0b9a30f182ebdafbba7a
[media] dvb-usb-v2: postpone removal of media_device

We should not remove the media_device until its last usage,
or we may have use after free troubles.

So, move the per-adapter media_device removal to happen at
the end of the adapter removal code.

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/usb/dvb-usb-v2/dvb_usb_core.c