From: Robert Love Date: Wed, 1 Dec 2010 00:18:23 +0000 (-0800) Subject: [SCSI] libfc: Fix incorrect locking and unlocking in FCP X-Git-Tag: v2.6.38-rc1~27^2~86 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3c2c3bf23cbef8eed6cf815715d0bece5cb7b5ec;p=pandora-kernel.git [SCSI] libfc: Fix incorrect locking and unlocking in FCP The error handler grabs the si->scsi_queue_lock, but in the case where the fsp pointer is NULL it releases the scsi_host lock. This can lead to a variety of system hangs depending on which is used first- the scsi_host lock or the scsi_queue_lock. This patch simply unlocks the correct lock when fcp is NULL. Signed-off-by: Robert Love Tested-by: Ross Brattain Signed-off-by: James Bottomley --- Reading git-diff-tree failed