mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 20:51:03 +02:00
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: Alexey Khoroshilov <khoroshilov@ispras.ru> Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
213dd193fa
commit
bf25c19979
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user