summaryrefslogtreecommitdiffstats
path: root/drivers/scsi
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2014-09-14 11:01:34 -0700
committerChristoph Hellwig <hch@lst.de>2014-11-12 11:19:17 +0100
commit0b9c08442c5d0991dd1632fed63221f5b6a35e83 (patch)
treed317c3161d7d90966dbd42428289b653d287c920 /drivers/scsi
parent7985090aa0201fa7760583f9f8e6ba41a8d4c392 (diff)
downloadop-kernel-dev-0b9c08442c5d0991dd1632fed63221f5b6a35e83.zip
op-kernel-dev-0b9c08442c5d0991dd1632fed63221f5b6a35e83.tar.gz
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/scsi')
-rw-r--r--drivers/scsi/device_handler/scsi_dh_hp_sw.c2
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 4ee2759..4824bfb 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;
OpenPOWER on IntegriCloud