Skip to contentSkip to conversation

edac: cell_edac: fix missing of_node_put

PATCH Applied Libo Chen 2 participants 2 messages Aug 26, 2013 – Nov 14, 2013 EDAC-core

lore
Share & tools
lore

Libo Chen

author
#0 lore raw

PATCH 1/1 edac: cell_edac: fix missing of_node_put

decrease device_node refcount np after task completion

---
 drivers/edac/cell_edac.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/edac/cell_edac.c +1 -0
index c2eaf33..493dc30 100644
@@ -162,6 +162,7 @@ static void cell_edac_init_csrows(struct mem_ctl_info *mci)
 			csrow->first_page, nr_pages);
 		break;
 	}
+	of_node_put(np);
 }
 
 static int cell_edac_probe(struct platform_device *pdev)
Signature · 1 line
1.7.1
#1 lore raw

Em Mon, 26 Aug 2013 14:53:43 +0800
Libo Chen <[email protected]> escreveu:

Quoted 4 lines

decrease device_node refcount np after task completion

Applied.

Patch is at:
http://git.infradead.org/users/mchehab/edac.git
and
http://git.kernel.org/cgit/linux/kernel/git/mchehab/linux-edac.git

Quoted 16 lines
---
 drivers/edac/cell_edac.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/edac/cell_edac.c +1 -0
index c2eaf33..493dc30 100644
@@ -162,6 +162,7 @@ static void cell_edac_init_csrows(struct mem_ctl_info *mci)
 			csrow->first_page, nr_pages);
 		break;
 	}
+	of_node_put(np);
 }
 
 static int cell_edac_probe(struct platform_device *pdev)
Signature · 2 lines
Cheers,
Mauro