mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-10 07:00:48 +00:00
[SCSI] megaraid_sas: release lock on error path
We should unlock here before returning. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Acked-by: Adam Radford <aradford@gmail.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
This commit is contained in:
parent
883467871c
commit
c64e483ea0
@ -4931,11 +4931,12 @@ static int megasas_mgmt_ioctl_fw(struct file *file, unsigned long arg)
|
||||
printk(KERN_ERR "megaraid_sas: timed out while"
|
||||
"waiting for HBA to recover\n");
|
||||
error = -ENODEV;
|
||||
goto out_kfree_ioc;
|
||||
goto out_up;
|
||||
}
|
||||
spin_unlock_irqrestore(&instance->hba_lock, flags);
|
||||
|
||||
error = megasas_mgmt_fw_ioctl(instance, user_ioc, ioc);
|
||||
out_up:
|
||||
up(&instance->ioctl_sem);
|
||||
|
||||
out_kfree_ioc:
|
||||
|
Loading…
x
Reference in New Issue
Block a user