SCSI: mpt2sas: fix oops because drv data points to NULL on resume from hibernate
commit838c463532b6de9cdc3075e45bf8487e7d5c0336
authorKashyap, Desai <kashyap.desai@lsi.com>
Fri, 7 Aug 2009 14:08:48 +0000 (7 19:38 +0530)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 9 Sep 2009 03:33:48 +0000 (8 20:33 -0700)
tree7673d7d7ff3b4872e8cd3773b6ba3d8851922a6a
parentfd7f94c8e002056350bcc59d6d0b960b85d5aa51
SCSI: mpt2sas: fix oops because drv data points to NULL on resume from hibernate

commit fcfe6392d18283df3c561b5ef59c330d485ff8ca upstream.

Fix another ocurring when the system resumes.  This oops was due to driver
setting the pci drvdata to NULL on the prior hibernation.  Becuase it was
set to NULL, upon resmume we assume the pci drvdata is non-zero, and we oops.
To fix the ooops, we don't set pci drvdata to NULL at hibernation time.

Signed-off-by: Kashyap Desai <kashyap.desai@lsi.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/scsi/mpt2sas/mpt2sas_base.c