Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bf25c199 authored by Alexey Khoroshilov's avatar Alexey Khoroshilov Committed by Greg Kroah-Hartman
Browse files

mcb: Do not return zero on error path in mcb_pci_probe()



There is an error path in mcb_pci_probe() where
it returns zero instead of error code.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: default avatarAlexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: default avatarJohannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 213dd193
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -51,6 +51,7 @@ static int mcb_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id)
	priv->mapbase = pci_resource_start(pdev, 0);
	priv->mapbase = pci_resource_start(pdev, 0);
	if (!priv->mapbase) {
	if (!priv->mapbase) {
		dev_err(&pdev->dev, "No PCI resource\n");
		dev_err(&pdev->dev, "No PCI resource\n");
		ret = -ENODEV;
		goto out_disable;
		goto out_disable;
	}
	}