Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Adam Radford and committed by
Christoph Hellwig
a2fbcbc3 c21bb25e

+1
+1
drivers/scsi/megaraid/megaraid_sas_fusion.c
··· 2355 2355 printk(KERN_WARNING "megaraid_sas: Hardware critical error, " 2356 2356 "returning FAILED for scsi%d.\n", 2357 2357 instance->host->host_no); 2358 + mutex_unlock(&instance->reset_mutex); 2358 2359 return FAILED; 2359 2360 } 2360 2361