From: Hans de Goede Date: Sat, 13 Sep 2014 10:26:41 +0000 (+0200) Subject: uas: Fix memleak of non-submitted urbs X-Git-Tag: fixes-for-v3.18-merge-window~16^2~71 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4c5481efb4346948ba7034432f86235a16ac9180;p=pandora-kernel.git uas: Fix memleak of non-submitted urbs Not all urbs we've allocated are necessarily also submitted, non-submitted urbs will not be free-ed by their completion handler. So we need to free them manually. There are 2 scenarios where this can happen: 1) We have failed to submit some urbs at abort / disconnect 2) When running over usb-2 we may have never tried to submit the data urbs when completing the scsi cmnd, because we never got a READ/WRITE_READY iu Signed-off-by: Hans de Goede Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed