All of lore.kernel.org
 help / color / mirror / Atom feed
* [ PATCH ] mptsas: Fix oops for insmod during kexec
@ 2007-03-09 21:07 Judith Lebzelter
  2007-03-09 21:22 ` Christoph Hellwig
  0 siblings, 1 reply; 5+ messages in thread
From: Judith Lebzelter @ 2007-03-09 21:07 UTC (permalink / raw)
  To: linux-scsi; +Cc: mpt_linux_developer, Eric.Moore, James.Bottomley

Hello,

This patch is to fix an oops on insmod for mptsas during kexec.
This applies to 2.6.21-rc3.

Signed-off-by:  Judith Lebzelter <judith@osdl.org

---


Index: linux-2.6.21-rc3/drivers/message/fusion/mptsas.c
===================================================================
--- linux-2.6.21-rc3.orig/drivers/message/fusion/mptsas.c
+++ linux-2.6.21-rc3/drivers/message/fusion/mptsas.c
@@ -815,7 +815,7 @@ mptsas_taskmgmt_complete(MPT_ADAPTER *io
 static int
 mptsas_ioc_reset(MPT_ADAPTER *ioc, int reset_phase)
 {
-	MPT_SCSI_HOST	*hd = (MPT_SCSI_HOST *)ioc->sh->hostdata;
+	MPT_SCSI_HOST	*hd;
 	struct mptsas_target_reset_event *target_reset_list, *n;
 	int rc;
 
@@ -827,7 +827,10 @@ mptsas_ioc_reset(MPT_ADAPTER *ioc, int r
 	if (reset_phase != MPT_IOC_POST_RESET)
 		goto out;
 
-	if (!hd || !hd->ioc)
+	if (!ioc->sh || !ioc->sh->hostdata)
+		goto out;
+	hd = (MPT_SCSI_HOST *)ioc->sh->hostdata;
+	if (!hd->ioc)
 		goto out;
 
 	if (list_empty(&hd->target_reset_list))


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-03-12 22:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-09 21:07 [ PATCH ] mptsas: Fix oops for insmod during kexec Judith Lebzelter
2007-03-09 21:22 ` Christoph Hellwig
2007-03-09 22:22   ` Moore, Eric
2007-03-10  9:26     ` Christoph Hellwig
2007-03-12 22:14       ` [ PATCH ] mptsas: Fix oops during driver load time(rev 2) Judith Lebzelter

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.