projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd1335e
)
block/ps3vram: Check return of ps3vram_cache_init
author
Geoff Levand
<geoff@infradead.org>
Mon, 7 Aug 2017 20:09:20 +0000
(20:09 +0000)
committer
Michael Ellerman
<mpe@ellerman.id.au>
Thu, 17 Aug 2017 13:03:44 +0000
(23:03 +1000)
Cc: Markus Elfring <elfring@users.sourceforge.net>
Cc: Jim Paris <jim@jtan.com>
Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Geoff Levand <geoff@infradead.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
drivers/block/ps3vram.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/block/ps3vram.c
b/drivers/block/ps3vram.c
index ba97d037279e41036203a327d5061910f5ebd96c..6a55959cbf78f99747cb2c84f93f5dc626042610 100644
(file)
--- a/
drivers/block/ps3vram.c
+++ b/
drivers/block/ps3vram.c
@@
-741,7
+741,11
@@
static int ps3vram_probe(struct ps3_system_bus_device *dev)
goto out_unmap_reports;
}
- ps3vram_cache_init(dev);
+ error = ps3vram_cache_init(dev);
+ if (error < 0) {
+ goto out_unmap_reports;
+ }
+
ps3vram_proc_init(dev);
queue = blk_alloc_queue(GFP_KERNEL);