[SCSI] mpt2sas: Added -ENOMEM return type when allocation fails
commit3e2e833a547cbd0cb3fbe85a5f6ee71a93931fde
authorKashyap, Desai <kashyap.desai@lsi.com>
Thu, 17 Jun 2010 08:17:29 +0000 (17 13:47 +0530)
committerJames Bottomley <James.Bottomley@suse.de>
Tue, 27 Jul 2010 17:02:20 +0000 (27 12:02 -0500)
treeb40daea9dca424ff8f42866b38efedab0cb9485c
parentf3eedd698ebafd0fe8a292672604a2db61c2c00a
[SCSI] mpt2sas: Added -ENOMEM return type when allocation fails

In the driver mpt2sas_base_attach subroutine, we need to add
support to return the proper error code when there are memory allocation
failures, e.g. returning -ENOMEM.

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