[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20201124063009.1529-1-bobo.shaobowang@huawei.com>
Date: Tue, 24 Nov 2020 14:30:09 +0800
From: Wang ShaoBo <bobo.shaobowang@...wei.com>
To: <bp@...en8.de>
CC: <mchehab@...nel.org>, <james.morse@....com>,
<linux-edac@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<huawei.libin@...wei.com>, <cj.chengjian@...wei.com>
Subject: [PATCH] EDAC, mv64x60: Fix error return code in mv64x60_pci_err_probe()
Fix to return -ENODEV error code when edac_pci_add_device() failed instaed
of 0 in mv64x60_pci_err_probe(), as done elsewhere in this function.
Fixes: 4f4aeeabc061 ("drivers-edac: add marvell mv64x60 driver")
Signed-off-by: Wang ShaoBo <bobo.shaobowang@...wei.com>
---
drivers/edac/mv64x60_edac.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/edac/mv64x60_edac.c b/drivers/edac/mv64x60_edac.c
index 3c68bb525d5d..456b9ca1fe8d 100644
--- a/drivers/edac/mv64x60_edac.c
+++ b/drivers/edac/mv64x60_edac.c
@@ -168,6 +168,7 @@ static int mv64x60_pci_err_probe(struct platform_device *pdev)
if (edac_pci_add_device(pci, pdata->edac_idx) > 0) {
edac_dbg(3, "failed edac_pci_add_device()\n");
+ res = -ENODEV;
goto err;
}
--
2.17.1
Powered by blists - more mailing lists