[media] dvb_usb_v2: do not free resources until delayed init is done
authorAntti Palosaari <crope@iki.fi>
Sun, 10 Jun 2012 00:11:28 +0000 (21:11 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 4 Aug 2012 10:56:28 +0000 (07:56 -0300)
commit3238aafbc3f860d685fc96b5b93a2f14decaec2e
tree8734065abf0f63e26252e0880419b48c6a7236bf
parent36a5c2bdedcba50435e1e9a9c62a99797783b2c4
[media] dvb_usb_v2: do not free resources until delayed init is done

It was possible to free resources by unloading module while
initialization was still ongoing on delayed work.

Use PID to make decision on .disconnect() if caller is our
work or some other as work also calls .disconnect() in error
case. There could be better solution still...

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/dvb-usb/dvb_usb.h
drivers/media/dvb/dvb-usb/dvb_usb_init.c