Re: [PATCH 7/8] usb/gadget: fix error path in uvc_function_bind()

2012-09-19 Thread Laurent Pinchart
Hi Sebastian, Thanks for the patch. On Sunday 16 September 2012 21:58:42 Sebastian Andrzej Siewior wrote: > The "video->minor = -1" assigment is done in V4L2 by > video_register_device() so it is removed here. > Now. uvc_function_bind() calls in error case uvc_function_unbind() for > cleanup. The

[PATCH 7/8] usb/gadget: fix error path in uvc_function_bind()

2012-09-16 Thread Sebastian Andrzej Siewior
The "video->minor = -1" assigment is done in V4L2 by video_register_device() so it is removed here. Now. uvc_function_bind() calls in error case uvc_function_unbind() for cleanup. The problem is that uvc_function_unbind() frees the uvc struct and uvc_bind_config() does as well in error case of usb_