mtip32xx: Fix an error handling path in 'mtip_pci_probe()'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Thu, 10 May 2018 07:27:31 +0000 (09:27 +0200)
committerJens Axboe <axboe@kernel.dk>
Thu, 10 May 2018 14:21:47 +0000 (08:21 -0600)
Branch to the right label in the error handling path in order to keep it
logical.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/mtip32xx/mtip32xx.c

index 769c551e3d7185a0099a595c5830d9fdaec9e30a..06257b872a7db691d279030d97d8d608c6d2892c 100644 (file)
@@ -4273,7 +4273,7 @@ static int mtip_pci_probe(struct pci_dev *pdev,
        if (!dd->isr_workq) {
                dev_warn(&pdev->dev, "Can't create wq %d\n", dd->instance);
                rv = -ENOMEM;
-               goto block_initialize_err;
+               goto setmask_err;
        }
 
        memset(cpu_list, 0, sizeof(cpu_list));