]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
scsi: pmcraid: fix lock imbalance in pmcraid_reset_reload()
authorChristoph Hellwig <hch@lst.de>
Sun, 23 Apr 2017 08:33:23 +0000 (10:33 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 24 Apr 2017 21:59:50 +0000 (17:59 -0400)
commit91402608641823fdfd8e18042f20c1a449108514
tree31081e8e35bfd844e2b0860064bbbbf8191cd19b
parentc5ce0abeb62845352d7428d6b82e5b52e8728f12
scsi: pmcraid: fix lock imbalance in pmcraid_reset_reload()

sparse found a bug that has always been present since the driver was
merged:

drivers/scsi/pmcraid.c:2353:12: warning: context imbalance in 'pmcraid_reset_reload' - different lock contexts for basic block

Fix this by using a common unlock goto label, and also reduce the
indentation level in the function.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reported-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/pmcraid.c