commit | 06ab8b04d232c80cb4b23984290ce413058cc975 | [log] [tgz] |
---|---|---|
author | Andrzej Pietrasiewicz <andrzej.p@samsung.com> | Fri Jan 16 15:14:27 2015 +0100 |
committer | Felipe Balbi <balbi@ti.com> | Mon Jan 19 12:54:22 2015 -0600 |
tree | f4bb0030c473818065a5b2ffc3754ec1e7f3b890 | |
parent | 16272ae77e0f167af70eabd476059137d64569a8 [diff] |
usb: gadget: uvc: preserve the address passed to kfree() __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(). Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com> Signed-off-by: Felipe Balbi <balbi@ti.com>