Re: [PATCH 2/3] usb: gadget: uvc: preserve the address passed to kfree()

2015-01-18 Thread Laurent Pinchart
Hi Andrzej, Thank you for the patch. On Friday 16 January 2015 15:14:27 Andrzej Pietrasiewicz wrote: > __uvcg_fill_strm() called from __uvcg_iter_stream_cls() > might have advanced the "data" even if __uvcg_iter_stream_cls() > returns an error, so use a backup copy as an argument to kfree(). > >

[PATCH 2/3] usb: gadget: uvc: preserve the address passed to kfree()

2015-01-16 Thread Andrzej Pietrasiewicz
__uvcg_fill_strm() called from __uvcg_iter_stream_cls() might have advanced the "data" even if __uvcg_iter_stream_cls() returns an error, so use a backup copy as an argument to kfree(). Signed-off-by: Andrzej Pietrasiewicz --- drivers/usb/gadget/function/uvc_configfs.c | 10 +++--- 1 file ch