UAS: Free status URB when we can't find the SCSI tag.
[linux-flexiantxendom0.git] / drivers / usb / storage / uas.c
index 28d9b19..9dd4aae 100644 (file)
@@ -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: