]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit8e857613d2ef628805d95c9a4c7471faff65ac2e
tree8734065abf0f63e26252e0880419b48c6a7236bf
parent55004aa3b885f7c9a1840cd646bcf744e4eda634
[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