mt7915: fix crash on failure in pci_set_dma_mask

Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
Felix Fietkau
2021-01-04 18:30:34 +01:00
parent a4539760b0
commit 64bd6f87e4
+1 -1
View File
@@ -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);