projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5512672
)
[SCSI] hpsa: return -ENOMEM, not -1
author
Stephen M. Cameron
<scameron@beardog.cce.hp.com>
Thu, 25 Feb 2010 20:03:06 +0000
(14:03 -0600)
committer
James 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
patch
|
blob
|
history
diff --git
a/drivers/scsi/hpsa.c
b/drivers/scsi/hpsa.c
index 604b4c95a440ed9544e8341c4bcfbdb0fb18496d..a72a18eabe243a08f498540ccd9d6ee922fb6997 100644
(file)
--- 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);