From: Krzysztof Opasiak Date: Mon, 20 Jul 2015 18:15:17 +0000 (+0200) Subject: usb: gadget: mass_storage: Free buffers if create lun fails X-Git-Tag: omap-for-v4.3/fixes-merge-window~42^2~35^2~122 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=903588a99c26ed6f103eaa0cfa4ccbe9cd779398;p=pandora-kernel.git usb: gadget: mass_storage: Free buffers if create lun fails Creation of LUN 0 may fail (for example due to ENOMEM). As fsg_common_set_num_buffers() does some memory allocation we should free it before it becomes unavailable. Signed-off-by: Krzysztof Opasiak Acked-by: Michal Nazarewicz Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed