[SCSI] mpt2sas: Check for NULL pointer before free_pages is added.
commit66a679365780a8d775b1ed03e2576007f7100121
authorKashyap, Desai <kashyap.desai@lsi.com>
Mon, 5 Apr 2010 08:51:07 +0000 (5 14:21 +0530)
committerJames Bottomley <James.Bottomley@suse.de>
Sun, 11 Apr 2010 18:42:46 +0000 (11 13:42 -0500)
tree9e9c4d4341f77fb5692cad739e0392ebcea6ce66
parentef7c80c1f18f2c5eea2dabd214f12e0c93ac29cf
[SCSI] mpt2sas: Check for NULL pointer before free_pages is added.

Added check before free_pages just to make sure ioc->scsi_lookup is not NULL.

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