projects
/
linux-flexiantxendom0.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
UAS: Free status URB when we can't find the SCSI tag.
[linux-flexiantxendom0.git]
/
drivers
/
usb
/
storage
/
uas.c
diff --git
a/drivers/usb/storage/uas.c
b/drivers/usb/storage/uas.c
index
28d9b19
..
9dd4aae
100644
(file)
--- a/
drivers/usb/storage/uas.c
+++ b/
drivers/usb/storage/uas.c
@@
-246,8
+246,10
@@
static void uas_stat_cmplt(struct urb *urb)
cmnd = sdev->current_cmnd;
else
cmnd = scsi_find_tag(sdev, tag);
- if (!cmnd)
+ if (!cmnd) {
+ usb_free_urb(urb);
return;
+ }
switch (iu->iu_id) {
case IU_ID_STATUS: