scsi: aacraid: report -ENOMEM to upper layer from aac_convert_sgraw2()
authorNikola Pajkovsky <npajkovsky@suse.cz>
Tue, 29 Aug 2017 11:59:04 +0000 (13:59 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 31 Aug 2017 02:02:23 +0000 (22:02 -0400)
commit96676246981b8321fb7bcaf51147f3be7c436af5
tree9468827c93f7a43ab6050b2d9bb67adc7a7139ab
parenta226032398cb03760c7a36e6be39ded86845a6cd
scsi: aacraid: report -ENOMEM to upper layer from aac_convert_sgraw2()

aac_convert_sgraw2() kmalloc memory and return -1 on error, which should
be -ENOMEM. However, nobody is checking return value, so with this
change, -ENOMEM is propagated to upper layer.

Signed-off-by: Nikola Pajkovsky <npajkovsky@suse.cz>
Reviewed-by: Raghava Aditya Renukunta <RaghavaAditya.Renukunta@microsemi.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/aacraid/aachba.c