[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)
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>

No differences found