From: Stephen M. Cameron Date: Thu, 25 Feb 2010 20:03:06 +0000 (-0600) Subject: [SCSI] hpsa: return -ENOMEM, not -1 X-Git-Tag: firefly_0821_release~9833^2~2561^2~46 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e9ea04a65ad842452cbee92b5c865af7fed17f63;p=firefly-linux-kernel-4.4.55.git [SCSI] hpsa: return -ENOMEM, not -1 Signed-off-by: Stephen M. Cameron Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index 604b4c95a440..a72a18eabe24 100644 --- a/drivers/scsi/hpsa.c +++ b/drivers/scsi/hpsa.c @@ -1386,7 +1386,7 @@ static int hpsa_send_reset(struct ctlr_info *h, unsigned char *scsi3addr) if (c == NULL) { /* trouble... */ dev_warn(&h->pdev->dev, "cmd_special_alloc returned NULL!\n"); - return -1; + return -ENOMEM; } fill_cmd(c, HPSA_DEVICE_RESET_MSG, h, NULL, 0, 0, scsi3addr, TYPE_MSG);