mirror of
https://github.com/torvalds/linux.git
synced 2024-12-15 07:33:56 +00:00
megaraid_sas: Fix reset_mutex leak
The following patch for megaraid_sas fixes a reset_mutex leak in megasas_reset_fusion(). Signed-off-by: Adam Radford <aradford@gmail.com> Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
parent
c21bb25e8a
commit
a2fbcbc3f0
@ -2355,6 +2355,7 @@ int megasas_reset_fusion(struct Scsi_Host *shost, int iotimeout)
|
||||
printk(KERN_WARNING "megaraid_sas: Hardware critical error, "
|
||||
"returning FAILED for scsi%d.\n",
|
||||
instance->host->host_no);
|
||||
mutex_unlock(&instance->reset_mutex);
|
||||
return FAILED;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user