Skip to content

Commit

Permalink
mt7915: fix crash on failure in pci_set_dma_mask
Browse files Browse the repository at this point in the history
Signed-off-by: Felix Fietkau <nbd@nbd.name>
  • Loading branch information
nbd168 committed Jan 4, 2021
1 parent a453976 commit 64bd6f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mt7915/pci.c
Expand Up @@ -117,7 +117,7 @@ static int mt7915_pci_probe(struct pci_dev *pdev,

ret = pci_set_dma_mask(pdev, DMA_BIT_MASK(32));
if (ret)
goto error;
return ret;

mdev = mt76_alloc_device(&pdev->dev, sizeof(*dev), &mt7915_ops,
&drv_ops);
Expand Down

0 comments on commit 64bd6f8

Please sign in to comment.