Commit 799f9172 authored by Christophe Jaillet's avatar Christophe Jaillet Committed by David S. Miller

atm: zatm: Fix an error handling path in 'zatm_init_one()'

If 'dma_set_mask_and_coherent()' fails, we must undo the previous
'pci_request_regions()' call.
Adjust corresponding 'goto' to jump at the right place of the error
handling path.
Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 18bcf290
...@@ -1613,7 +1613,7 @@ static int zatm_init_one(struct pci_dev *pci_dev, ...@@ -1613,7 +1613,7 @@ static int zatm_init_one(struct pci_dev *pci_dev,
ret = dma_set_mask_and_coherent(&pci_dev->dev, DMA_BIT_MASK(32)); ret = dma_set_mask_and_coherent(&pci_dev->dev, DMA_BIT_MASK(32));
if (ret < 0) if (ret < 0)
goto out_disable; goto out_release;
zatm_dev->pci_dev = pci_dev; zatm_dev->pci_dev = pci_dev;
dev->dev_data = zatm_dev; dev->dev_data = zatm_dev;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment