diff options
author | Christoph Hellwig <hch@lst.de> | 2014-09-14 11:01:34 -0700 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2014-11-12 11:19:17 +0100 |
commit | 0b9c08442c5d0991dd1632fed63221f5b6a35e83 (patch) | |
tree | d317c3161d7d90966dbd42428289b653d287c920 /drivers | |
parent | 7985090aa0201fa7760583f9f8e6ba41a8d4c392 (diff) | |
download | linux-0b9c08442c5d0991dd1632fed63221f5b6a35e83.tar.gz linux-0b9c08442c5d0991dd1632fed63221f5b6a35e83.tar.bz2 linux-0b9c08442c5d0991dd1632fed63221f5b6a35e83.zip |
scsi_dh_hp_sw: fix return value on failed allocation
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Mike Christie <michaelc@cs.wisc.edu>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/scsi/device_handler/scsi_dh_hp_sw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/device_handler/scsi_dh_hp_sw.c b/drivers/scsi/device_handler/scsi_dh_hp_sw.c index 4ee2759f5299..4824bfbe3051 100644 --- a/drivers/scsi/device_handler/scsi_dh_hp_sw.c +++ b/drivers/scsi/device_handler/scsi_dh_hp_sw.c @@ -364,7 +364,7 @@ static int hp_sw_bus_attach(struct scsi_device *sdev) if (!scsi_dh_data) { sdev_printk(KERN_ERR, sdev, "%s: Attach Failed\n", HP_SW_NAME); - return 0; + return -ENOMEM; } scsi_dh_data->scsi_dh = &hp_sw_dh; |