[PATCH] em28xx-dvb: fix memleak in dvb_fini()

2010-02-13 Thread Francesco Lavra
This patch fixes a memory leak which occurs when an em28xx card with DVB extension is unplugged or its DVB extension driver is unloaded. In dvb_fini(), dev->dvb must be freed before being set to NULL, as is done in dvb_init() in case of error. Signed-off-by: Francesco Lavra Cc: stable --- NOTE

[PATCH] em28xx-dvb: fix memleak in dvb_fini()

2009-12-31 Thread Francesco Lavra
Hi, this patch fixes a memory leak which occurs when an em28xx card with DVB extension is unplugged or its DVB extension driver is unloaded. In dvb_fini(), dev->dvb must be freed before being set to NULL, as is done in dvb_init() in case of error. Note that this bug is also present in the latest st