2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-16 01:04:08 +08:00

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>
This commit is contained in:
Geoff Levand 2017-08-07 20:09:20 +00:00 committed by Michael Ellerman
parent fd1335e048
commit 00e7c259e9

View File

@ -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);