[SCSI] scsi_dh_rdac : minor return fix for rdac
authorMoger, Babu <Babu.Moger@netapp.com>
Tue, 4 Sep 2012 17:13:18 +0000 (17:13 +0000)
committerJames Bottomley <JBottomley@Parallels.com>
Mon, 24 Sep 2012 08:11:03 +0000 (12:11 +0400)
Signed-off-by: Babu Moger <babu.moger@netapp.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/device_handler/scsi_dh_rdac.c

index a44676c..69c915a 100644 (file)
@@ -853,7 +853,7 @@ static int rdac_bus_attach(struct scsi_device *sdev)
        if (!scsi_dh_data) {
                sdev_printk(KERN_ERR, sdev, "%s: Attach failed\n",
                            RDAC_NAME);
-               return 0;
+               return -ENOMEM;
        }
 
        scsi_dh_data->scsi_dh = &rdac_dh;