OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6774def
)
ps3rom: fix error return code
author
Julia Lawall
<Julia.Lawall@lip6.fr>
Wed, 5 Nov 2014 10:11:10 +0000
(21:11 +1100)
committer
Jiri Kosina
<jkosina@suse.cz>
Thu, 20 Nov 2014 13:58:19 +0000
(14:58 +0100)
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>
drivers/scsi/ps3rom.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/ps3rom.c
b/drivers/scsi/ps3rom.c
index
ef23fab
..
619caf1
100644
(file)
--- 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;
}