Message ID | 1335519112-8372-4-git-send-email-ming.lei@canonical.com |
---|---|
State | New |
Headers | show |
diff --git a/drivers/usb/storage/uas.c b/drivers/usb/storage/uas.c index 28d9b19..9dd4aae 100644 --- 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: