usb: gadget: uvc: memory leak in uvcg_frame_make()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 14 Jan 2015 21:03:08 +0000 (00:03 +0300)
committerFelipe Balbi <balbi@ti.com>
Mon, 19 Jan 2015 18:53:31 +0000 (12:53 -0600)
commitc5b2dc68a7a7e31d8e88b3bf9d45bd9e78e9fb78
treef6b59e57f01d63e826141cd09e16ebf9ce813114
parentceeb010ba2534f0b78efde6b3aa7d208148df92f
usb: gadget: uvc: memory leak in uvcg_frame_make()

We need to add a kfree(h) on an error path.

Acked-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/function/uvc_configfs.c