summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulia Lawall <Julia.Lawall@lip6.fr>2014-11-05 21:11:10 +1100
committerJiri Kosina <jkosina@suse.cz>2014-11-20 14:58:19 +0100
commitaf222097aaf7f547b7543d5a0d6198d1480db414 (patch)
tree50b13d189bd65efea106e55b6eb76c68c7278a5c
parent6774def6422f6eac53f1828c317bf3b08a8f5a60 (diff)
ps3rom: fix error return code
Set the return variable to an error code as done elsewhere in the function. Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Acked-By: Geoff Levand <geoff@infradead.org> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
-rw-r--r--drivers/scsi/ps3rom.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/ps3rom.c b/drivers/scsi/ps3rom.c
index ef23fabe3924..619caf1acc9c 100644
--- a/drivers/scsi/ps3rom.c
+++ b/drivers/scsi/ps3rom.c
@@ -387,6 +387,7 @@ static int ps3rom_probe(struct ps3_system_bus_device *_dev)
if (!host) {
dev_err(&dev->sbd.core, "%s:%u: scsi_host_alloc failed\n",
__func__, __LINE__);
+ error = -ENOMEM;
goto fail_teardown;
}