aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/parsers/redboot.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/parsers/redboot.c')
-rw-r--r--drivers/mtd/parsers/redboot.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mtd/parsers/redboot.c b/drivers/mtd/parsers/redboot.c
index 3ccd6363ee8c..4f3bcc59a638 100644
--- a/drivers/mtd/parsers/redboot.c
+++ b/drivers/mtd/parsers/redboot.c
@@ -58,6 +58,7 @@ static void parse_redboot_of(struct mtd_info *master)
return;
ret = of_property_read_u32(npart, "fis-index-block", &dirblock);
+ of_node_put(npart);
if (ret)
return;