]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[SCSI] mpt2sas: fix oops because drv data points to NULL on resume from hibernate
authorKashyap, Desai <kashyap.desai@lsi.com>
Fri, 7 Aug 2009 14:08:48 +0000 (19:38 +0530)
committerJames Bottomley <James.Bottomley@suse.de>
Thu, 13 Aug 2009 21:31:32 +0000 (16:31 -0500)
commitfcfe6392d18283df3c561b5ef59c330d485ff8ca
tree804151fb6b12ba2e7c9d19b7b824a394b70d705b
parente4750c989f732555fca86dd73d488c79972362db
[SCSI] mpt2sas: fix oops because drv data points to NULL on resume from hibernate

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>
drivers/scsi/mpt2sas/mpt2sas_base.c