Message ID | E1loPrH-00GFAU-1v@www.linuxtv.org |
---|---|
State | Accepted |
Commit | 0a045eac8d0427b64577a24d74bb8347c905ac65 |
Headers | show |
Series | [git:media_stage/master] media: zr364xx: fix memory leak in zr364xx_start_readpipe | expand |
diff --git a/drivers/media/usb/zr364xx/zr364xx.c b/drivers/media/usb/zr364xx/zr364xx.c index 1ef611e08323..538a330046ec 100644 --- a/drivers/media/usb/zr364xx/zr364xx.c +++ b/drivers/media/usb/zr364xx/zr364xx.c @@ -1032,6 +1032,7 @@ static int zr364xx_start_readpipe(struct zr364xx_camera *cam) DBG("submitting URB %p\n", pipe_info->stream_urb); retval = usb_submit_urb(pipe_info->stream_urb, GFP_KERNEL); if (retval) { + usb_free_urb(pipe_info->stream_urb); printk(KERN_ERR KBUILD_MODNAME ": start read pipe failed\n"); return retval; }