mirror of
https://github.com/fail0verflow/switch-linux.git
synced 2025-05-04 02:34:21 -04:00
USB: uas: fix locking
Forgot to unlock in the uas_eh_task_mgmt error paths. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Reported-by: Fengguang Wu <fengguang.wu@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
0a2314035c
commit
1994ff405e
1 changed files with 2 additions and 0 deletions
|
@ -649,12 +649,14 @@ static int uas_eh_task_mgmt(struct scsi_cmnd *cmnd,
|
||||||
shost_printk(KERN_INFO, shost,
|
shost_printk(KERN_INFO, shost,
|
||||||
"%s: %s: submit sense urb failed\n",
|
"%s: %s: submit sense urb failed\n",
|
||||||
__func__, fname);
|
__func__, fname);
|
||||||
|
spin_unlock_irqrestore(&devinfo->lock, flags);
|
||||||
return FAILED;
|
return FAILED;
|
||||||
}
|
}
|
||||||
if (uas_submit_task_urb(cmnd, GFP_ATOMIC, function, tag)) {
|
if (uas_submit_task_urb(cmnd, GFP_ATOMIC, function, tag)) {
|
||||||
shost_printk(KERN_INFO, shost,
|
shost_printk(KERN_INFO, shost,
|
||||||
"%s: %s: submit task mgmt urb failed\n",
|
"%s: %s: submit task mgmt urb failed\n",
|
||||||
__func__, fname);
|
__func__, fname);
|
||||||
|
spin_unlock_irqrestore(&devinfo->lock, flags);
|
||||||
return FAILED;
|
return FAILED;
|
||||||
}
|
}
|
||||||
spin_unlock_irqrestore(&devinfo->lock, flags);
|
spin_unlock_irqrestore(&devinfo->lock, flags);
|
||||||
|
|
Loading…
Add table
Reference in a new issue