From: Jing Xiangfeng Date: Fri, 4 Sep 2020 02:51:03 +0000 (+0800) Subject: atm: eni: fix the missed pci_disable_device() for eni_init_one() X-Git-Tag: v5.9-rc7~34^2~88 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=c2b947879ca320ac5505c6c29a731ff17da5e805;p=tomoyo%2Ftomoyo-test1.git atm: eni: fix the missed pci_disable_device() for eni_init_one() eni_init_one() misses to call pci_disable_device() in an error path. Jump to err_disable to fix it. Fixes: ede58ef28e10 ("atm: remove deprecated use of pci api") Signed-off-by: Jing Xiangfeng Signed-off-by: Jakub Kicinski --- diff --git a/drivers/atm/eni.c b/drivers/atm/eni.c index 39be444534d0..316a9947541f 100644 --- a/drivers/atm/eni.c +++ b/drivers/atm/eni.c @@ -2224,7 +2224,7 @@ static int eni_init_one(struct pci_dev *pci_dev, rc = dma_set_mask_and_coherent(&pci_dev->dev, DMA_BIT_MASK(32)); if (rc < 0) - goto out; + goto err_disable; rc = -ENOMEM; eni_dev = kmalloc(sizeof(struct eni_dev), GFP_KERNEL);