Skip to content

Commit a2fbcbc

Browse files
Adam RadfordChristoph Hellwig
authored andcommitted
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>
1 parent c21bb25 commit a2fbcbc

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎drivers/scsi/megaraid/megaraid_sas_fusion.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2355,6 +2355,7 @@ int megasas_reset_fusion(struct Scsi_Host *shost, int iotimeout)
23552355
printk(KERN_WARNING "megaraid_sas: Hardware critical error, "
23562356
"returning FAILED for scsi%d.\n",
23572357
instance->host->host_no);
2358+
mutex_unlock(&instance->reset_mutex);
23582359
return FAILED;
23592360
}
23602361

0 commit comments

Comments
 (0)