Skip to content

Commit

Permalink
ps3vram: Correct exchanged gotos in ps3vram_probe() error path
Browse files Browse the repository at this point in the history
Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Cc: Jim Paris <jim@jtan.com>
Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
  • Loading branch information
Jim Paris authored and Benjamin Herrenschmidt committed Jun 15, 2009
1 parent 3c20e2f commit 3273d87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/block/ps3vram.c
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,7 @@ static int __devinit ps3vram_probe(struct ps3_system_bus_device *dev)
if (ps3_open_hv_device(dev)) {
dev_err(&dev->core, "ps3_open_hv_device failed\n");
error = -EAGAIN;
goto out_close_gpu;
goto out_free_xdr_buf;
}

/* Request memory */
Expand All @@ -659,7 +659,7 @@ static int __devinit ps3vram_probe(struct ps3_system_bus_device *dev)
dev_err(&dev->core, "lv1_gpu_memory_allocate failed %d\n",
status);
error = -ENOMEM;
goto out_free_xdr_buf;
goto out_close_gpu;
}

/* Request context */
Expand Down

0 comments on commit 3273d87

Please sign in to comment.