diff options
author | Jim Paris <jim@jtan.com> | 2009-06-10 06:38:39 +0200 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2009-06-15 05:26:18 +0200 |
commit | 3273d8778f90457a495603945e95b47c2c139f22 (patch) | |
tree | d396985b80804aa0496383d5d5b481c08090da54 /drivers/block/ps3vram.c | |
parent | ps3vram: Use proc_create_data() instead of proc_create() (diff) | |
download | linux-3273d8778f90457a495603945e95b47c2c139f22.tar.xz linux-3273d8778f90457a495603945e95b47c2c139f22.zip |
ps3vram: Correct exchanged gotos in ps3vram_probe() error path
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>
Diffstat (limited to '')
-rw-r--r-- | drivers/block/ps3vram.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/block/ps3vram.c b/drivers/block/ps3vram.c index 6e738684a158..3c9ad1959a69 100644 --- a/drivers/block/ps3vram.c +++ b/drivers/block/ps3vram.c @@ -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 */ @@ -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 */ |