Re: [PATCH v3] em28xx: Only deallocate struct em28xx after finishing all extensions

2014-03-08 Thread Frank Schäfer
Am 07.03.2014 18:38, schrieb Mauro Carvalho Chehab: >>> static int em28xx_usb_suspend(struct usb_interface *interface, >>> > > diff --git a/drivers/media/usb/em28xx/em28xx-dvb.c >>> > > b/drivers/media/usb/em28xx/em28xx-dvb.c >>> > > index d4986bdfbdc3..6dbc71ba2820 100644 >>> > > --- a/drivers/m

Re: [PATCH v3] em28xx: Only deallocate struct em28xx after finishing all extensions

2014-03-07 Thread Mauro Carvalho Chehab
Em Fri, 07 Mar 2014 18:04:52 +0100 Frank Schäfer escreveu: > > Am 05.03.2014 15:22, schrieb Mauro Carvalho Chehab: > > 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. > > >

Re: [PATCH v3] em28xx: Only deallocate struct em28xx after finishing all extensions

2014-03-07 Thread Frank Schäfer
Am 05.03.2014 15:22, schrieb Mauro Carvalho Chehab: > 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. > > Signed-off-by: Mauro Carvalho Chehab > --- > drivers/media/usb/em28xx/em28

[PATCH v3] em28xx: Only deallocate struct em28xx after finishing all extensions

2014-03-05 Thread Mauro Carvalho Chehab
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. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/usb/em28xx/em28xx-audio.c | 7 ++- drivers/media/usb/em28xx/em28xx-cards.c | 31