From: Joe Eykholt Date: Sat, 13 Mar 2010 00:07:46 +0000 (-0800) Subject: [SCSI] libfc: fix oops in point-to-point mode X-Git-Tag: v2.6.35-rc1~470^2^2~165 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2f2ac4a0df8c4beee6e4057a69fa973b6040a573;p=pandora-kernel.git [SCSI] libfc: fix oops in point-to-point mode In point-to-point mode, if the PLOGI to the remote port times out, it can get deleted by the remote port module. Since there's no reference by the local port, lport->ptp_data points to a freed rport, and when the local port is reset and tries to logout again, an oops occurs in mutex_lock_nested(). Hold a reference count on the point-to-point rdata. Signed-off-by: Joe Eykholt Signed-off-by: Robert Love Signed-off-by: James Bottomley --- Reading git-diff-tree failed