Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0b9c0844 authored by Christoph Hellwig's avatar Christoph Hellwig
Browse files

scsi_dh_hp_sw: fix return value on failed allocation

parent 7985090a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;