summaryrefslogtreecommitdiffstats
path: root/drivers/block/ps3vram.c
diff options
context:
space:
mode:
authorGeoff Levand <geoff@infradead.org>2017-08-07 20:09:20 +0000
committerMichael Ellerman <mpe@ellerman.id.au>2017-08-17 23:03:44 +1000
commit00e7c259e9c44f414ead5fc9bb3c459d8235045c (patch)
tree1d90a7fbef8953311be0931ad04858965f2325a6 /drivers/block/ps3vram.c
parentfd1335e048a961ef63f7da1a0c8f395eb7bddc22 (diff)
downloadlinux-00e7c259e9c44f414ead5fc9bb3c459d8235045c.tar.bz2
block/ps3vram: Check return of ps3vram_cache_init
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>
Diffstat (limited to 'drivers/block/ps3vram.c')
-rw-r--r--drivers/block/ps3vram.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/block/ps3vram.c b/drivers/block/ps3vram.c
index ba97d037279e..6a55959cbf78 100644
--- 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);