ps3vram: Correct exchanged gotos in ps3vram_probe() error path
authorJim Paris <jim@jtan.com>
Wed, 10 Jun 2009 04:38:39 +0000 (04:38 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 15 Jun 2009 03:26:18 +0000 (13:26 +1000)
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>
drivers/block/ps3vram.c

index 6e738684a158b577ed334c6241a41a43ac3329ec..3c9ad1959a69636809c6d0745e0b336cb8f457e8 100644 (file)
@@ -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 */