mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt7915: fix crash on failure in pci_set_dma_mask
Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user