linux/drivers/media/video/cx231xx
Jesper Juhl 266e8ae37d [media] media, cx231xx: Fix double free on close
In cx231xx_v4l2_close() there are two calls to
cx231xx_release_resources(dev) followed by kfree(dev). That is a
problem since cx231xx_release_resources() already kfree()'s its
argument, so we end up doing a double free.

Easily resolved by just removing the redundant kfree() calls after the
calls to cx231xx_release_resources().

I also changed the 'dev = NULL' assignments (which are rather
pointless since 'dev' is about to go out of scope), to 'fh->dev = NULL'
since it looks to me that that is what was actually intended.
And I removed the 'dev = NULL' assignment at the end of
cx231xx_release_resources() since it is pointless.

Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2012-03-19 14:13:51 -03:00
..
cx231xx-417.c [media] V4L2: Add per-device-node capabilities 2012-01-23 16:34:27 -02:00
cx231xx-audio.c [media] cx231xx: use URB_NO_TRANSFER_DMA_MAP on URBs allocated with usb_alloc_urb() 2012-01-10 22:38:59 -02:00
cx231xx-avcore.c [media] cx231xx: Add support for Hauppauge WinTV USB2-FM 2011-07-27 17:53:06 -03:00
cx231xx-cards.c [media] media, cx231xx: Fix double free on close 2012-03-19 14:13:51 -03:00
cx231xx-conf-reg.h
cx231xx-core.c [media] cx231xx: use URB_NO_TRANSFER_DMA_MAP on URBs allocated with usb_alloc_urb() 2012-01-10 22:38:59 -02:00
cx231xx-dif.h [media] CodingStyle cleanup at s5h1432 and cx231xx 2010-10-21 01:17:45 -02:00
cx231xx-dvb.c [media] cx231xx: fix device disconnect checks 2012-01-10 22:35:31 -02:00
cx231xx-i2c.c [media] cx231xx: Use a generic check for TUNER_XC5000 2011-03-21 20:31:59 -03:00
cx231xx-input.c [media] cx231xx: Fix unregister logic 2012-01-10 22:35:29 -02:00
cx231xx-pcb-cfg.c
cx231xx-pcb-cfg.h
cx231xx-reg.h
cx231xx-vbi.c [media] cx231xx: use URB_NO_TRANSFER_DMA_MAP on URBs allocated with usb_alloc_urb() 2012-01-10 22:38:59 -02:00
cx231xx-vbi.h
cx231xx-video.c [media] media, cx231xx: Fix double free on close 2012-03-19 14:13:51 -03:00
cx231xx.h [media] cx231xx: fix device disconnect checks 2012-01-10 22:35:31 -02:00
Kconfig [media] drivers: video: cx231xx: Fix dependency for VIDEO_CX231XX_DVB 2012-01-10 23:24:45 -02:00
Makefile [media] drivers/media: do not use EXTRA_CFLAGS 2011-09-03 18:50:59 -03:00