cell_edac: fix missing of_node_put
Decrease device_node refcount np after task completion. Signed-off-by: Libo Chen <libo.chen@huawei.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
This commit is contained in:
parent
4d715a805b
commit
3e45588825
1 changed files with 1 additions and 0 deletions
|
@ -162,6 +162,7 @@ static void cell_edac_init_csrows(struct mem_ctl_info *mci)
|
||||||
csrow->first_page, nr_pages);
|
csrow->first_page, nr_pages);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
of_node_put(np);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int cell_edac_probe(struct platform_device *pdev)
|
static int cell_edac_probe(struct platform_device *pdev)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue