V4L/DVB (10296): uvcvideo: Fix memory leak in input device handling
authorLaurent Pinchart <laurent.pinchart@skynet.be>
Thu, 22 Jan 2009 15:45:10 +0000 (12:45 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 30 Mar 2009 15:42:26 +0000 (12:42 -0300)
commitf180152376c984a6faa9decb8f2811c373da9141
tree61efd7457f949e1bfa78f931e748659ec2d315ac
parentefdc8a9585ce02e70e538e46f235aefd63a3f8da
V4L/DVB (10296): uvcvideo: Fix memory leak in input device handling

The dynamically allocated input_dev->phys buffer isn't freed when
unregistering the device. As the input layer doesn't provide any release
callback, use a fixed-size buffer inside the uvc_device structure.

Signed-off-by: Laurent Pinchart <laurent.pinchart@skynet.be>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/uvc/uvc_status.c
drivers/media/video/uvc/uvcvideo.h