]> git.itanic.dy.fi Git - linux-stable/commit
[media] em28xx: Only deallocate struct em28xx after finishing all extensions
authorMauro Carvalho Chehab <m.chehab@samsung.com>
Wed, 5 Mar 2014 14:21:07 +0000 (11:21 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 11 Mar 2014 09:56:46 +0000 (06:56 -0300)
commit47677e51e2a4040c204d7971a5103592600185b1
tree58196e42f5ad37ee12333a69593d444f0d1e10de
parent88e4fcda55e07278fcf5f6eea684685ffc0633e2
[media] em28xx: Only deallocate struct em28xx after finishing all extensions

We can't free struct em28xx while one of the extensions is still
using it.

So, add a kref() to control it, freeing it only after the
extensions fini calls.

Reviewed-by: Frank Schäfer <fschaefer.oss@googlemail.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/usb/em28xx/em28xx-audio.c
drivers/media/usb/em28xx/em28xx-cards.c
drivers/media/usb/em28xx/em28xx-dvb.c
drivers/media/usb/em28xx/em28xx-input.c
drivers/media/usb/em28xx/em28xx-video.c
drivers/media/usb/em28xx/em28xx.h