[SCSI] mpt2sas: add missing allocation check
authorTomas Henzl <thenzl@redhat.com>
Mon, 13 Feb 2012 17:29:58 +0000 (18:29 +0100)
committerJames Bottomley <JBottomley@Parallels.com>
Sun, 19 Feb 2012 15:37:10 +0000 (09:37 -0600)
commitc834b1c4ec8ccc9c2d814bd78264b509708fe6dd
treec79fad5e2479be7ab47e3956ce699363900e15f8
parentcf3059a12936f8e92876e56b50bcdb092be70645
[SCSI] mpt2sas: add missing allocation check

The __get_free_pages can fail, so the return value should be checked.
Spotted thanks to Stanislaw.

Signed-off-by: Tomas Henzl <thenzl@redhat.com>
Acked-by: "Nandigama, Nagalakshmi" <Nagalakshmi.Nandigama@lsi.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/mpt2sas/mpt2sas_base.c