From: James Bottomley Date: Mon, 7 Jul 2008 16:24:06 +0000 (-0500) Subject: [SCSI] mptspi: fix oops in mptspi_dv_renegotiate_work() X-Git-Tag: v2.6.26~6^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=081a5bcb39b455405d58f79bb3c9398a9d4477ed;p=pandora-kernel.git [SCSI] mptspi: fix oops in mptspi_dv_renegotiate_work() The problem here is that if the ioc faults too early in the bring up sequence (as it usually does for an irq routing problem), ioc_reset gets called before the scsi host is even allocated. This causes an oops when it later schedules a renegotiation. Fix this by checking ioc->sh before trying to renegotiate. Cc: "Moore, Eric" Cc: Stable Tree Signed-off-by: James Bottomley --- Reading git-diff-tree failed