[PATCH 2/3] block/ps3vram: Check return of ps3vram_cache_init
Geoff Levand
geoff at infradead.org
Tue Aug 8 06:09:20 AEST 2017
Cc: Markus Elfring <elfring at users.sourceforge.net>
Cc: Jim Paris <jim at jtan.com>
Cc: Jens Axboe <axboe at kernel.dk>
Signed-off-by: Geoff Levand <geoff at infradead.org>
---
drivers/block/ps3vram.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
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);
--
2.11.0
More information about the Linuxppc-dev
mailing list