mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 12:43:29 +02:00
EDAC/synopsys: Return the correct value in mc_probe()
Return the error value if the inject sysfs file creation fails, rather than returning 0, to signal to the upper layer that the ->probe function failed. [ bp: Massage. ] Signed-off-by: Zhang Xiaoxu <zhangxiaoxu5@huawei.com> Signed-off-by: Borislav Petkov <bp@suse.de> Reviewed-by: Michal Simek <michal.simek@xilinx.com> Link: https://lkml.kernel.org/r/20201116135810.3130845-1-zhangxiaoxu5@huawei.com
This commit is contained in:
committed by
Borislav Petkov
parent
211f737ac7
commit
61d35648c0
@@ -1344,7 +1344,8 @@ static int mc_probe(struct platform_device *pdev)
|
|||||||
|
|
||||||
#ifdef CONFIG_EDAC_DEBUG
|
#ifdef CONFIG_EDAC_DEBUG
|
||||||
if (priv->p_data->quirks & DDR_ECC_DATA_POISON_SUPPORT) {
|
if (priv->p_data->quirks & DDR_ECC_DATA_POISON_SUPPORT) {
|
||||||
if (edac_create_sysfs_attributes(mci)) {
|
rc = edac_create_sysfs_attributes(mci);
|
||||||
|
if (rc) {
|
||||||
edac_printk(KERN_ERR, EDAC_MC,
|
edac_printk(KERN_ERR, EDAC_MC,
|
||||||
"Failed to create sysfs entries\n");
|
"Failed to create sysfs entries\n");
|
||||||
goto free_edac_mc;
|
goto free_edac_mc;
|
||||||
|
Reference in New Issue
Block a user