projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8834678
)
[SCSI] megaraid_sas: release lock on error path
author
Dan Carpenter
<
[email protected]
>
Tue, 16 Apr 2013 07:44:19 +0000
(10:44 +0300)
committer
James Bottomley
<
[email protected]
>
Thu, 2 May 2013 19:08:46 +0000
(12:08 -0700)
We should unlock here before returning.
Signed-off-by: Dan Carpenter <
[email protected]
>
Acked-by: Adam Radford <
[email protected]
>
Signed-off-by: James Bottomley <
[email protected]
>
drivers/scsi/megaraid/megaraid_sas_base.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/megaraid/megaraid_sas_base.c
b/drivers/scsi/megaraid/megaraid_sas_base.c
index 7c90d57b867e2c332e1a953a3c01892f971bd779..3a9ddae86f1f8e2d5e33474a7f0f3510ec413c65 100644
(file)
--- a/
drivers/scsi/megaraid/megaraid_sas_base.c
+++ b/
drivers/scsi/megaraid/megaraid_sas_base.c
@@
-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: