[SCSI] hpsa: return -ENOMEM, not -1
authorStephen M. Cameron <scameron@beardog.cce.hp.com>
Thu, 25 Feb 2010 20:03:06 +0000 (14:03 -0600)
committerJames Bottomley <James.Bottomley@suse.de>
Wed, 3 Mar 2010 13:06:18 +0000 (18:36 +0530)
Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/hpsa.c

index 604b4c95a440ed9544e8341c4bcfbdb0fb18496d..a72a18eabe243a08f498540ccd9d6ee922fb6997 100644 (file)
@@ -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);