summaryrefslogtreecommitdiff
path: root/drivers/media/video/v4l2-compat-ioctl32.c
diff options
context:
space:
mode:
authorJesper Juhl <jj@chaosbits.net>2012-01-29 23:55:28 +0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-02-08 18:38:57 +0400
commit9fa728ea35501fb5cd56880839ad867265c61822 (patch)
tree1cd006be56640036e6db87da0d3052e47b08022b /drivers/media/video/v4l2-compat-ioctl32.c
parent41292b16117bdd8e1321223b6a14e86aa1cb5fbb (diff)
downloadlinux-9fa728ea35501fb5cd56880839ad867265c61822.tar.xz
[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>
Diffstat (limited to 'drivers/media/video/v4l2-compat-ioctl32.c')
0 files changed, 0 insertions, 0 deletions