linux/drivers/staging/media
Jesper Juhl 9fa728ea35 [media] easycap: Fix mem leak in easycap_usb_probe()
If allocating 'pdata_urb' fails, the function will return -ENOMEM
without freeing the memory allocated, just a few lines above, for
'purb' and will leak that memory when 'purb' goes out of scope.

This patch resolves the leak by freeing the allocated storage with
usb_free_urb() before the return.

Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2012-02-08 12:38:57 -02:00
..
as102 [media] drivers/staging/media/as102/as102_usb_drv.c: shift position of allocation code 2012-01-06 11:14:30 -02:00
cxd2099
dt3155v4l [media] Staging: dt3155v4l: probe() always fails 2012-01-06 11:06:53 -02:00
easycap [media] easycap: Fix mem leak in easycap_usb_probe() 2012-02-08 12:38:57 -02:00
go7007 Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media 2012-01-15 12:49:56 -08:00
lirc Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media 2012-01-15 12:49:56 -08:00
solo6x10 Merge tag 'v3.2-rc2' into staging/for_v3.3 2011-11-23 19:42:09 -02:00
Kconfig
Makefile