Skip to contentSkip to conversation

hwspinlock: qcom_hwspinlock: add missing of_node_put after calling of_parse_phandle

PATCH New Peter Chen 3 participants 6 messages Jul 5, 2016 – Jul 7, 2016

Subsystems (4)
lore
Share & tools
lore

Peter Chen

author
#0 lore raw

PATCH 1/2 hwspinlock: qcom_hwspinlock: add missing of_node_put after calling of_parse_phandle

of_node_put needs to be called when the device node which is got from of_parse_phandle has finished using.

Cc linux-arm-kernel at lists.infradead.org
Cc linux-arm-msm at vger.kernel.org
---
 drivers/hwspinlock/qcom_hwspinlock.c | 1 +
 1 file changed, 1 insertion(+)
drivers/hwspinlock/qcom_hwspinlock.c +1 -0
index c752447..fa6880b 100644
@@ -98,6 +98,7 @@ static int qcom_hwspinlock_probe(struct platform_device *pdev)
 	}
 
 	regmap = syscon_node_to_regmap(syscon);
+	of_node_put(syscon);
 	if (IS_ERR(regmap))
 		return PTR_ERR(regmap);
 
Signature · 1 line
1.9.1
author
#1 lore raw

PATCH 2/2 hwtracing: coresight: of_coresight: add missing of_node_put after calling of_parse_phandle

of_node_put needs to be called when the device node which is got from of_parse_phandle has finished using.

Cc linux-arm-kernel at lists.infradead.org
Cc Mathieu Poirier <[email protected]>
---
 drivers/hwtracing/coresight/of_coresight.c | 1 +
 1 file changed, 1 insertion(+)
drivers/hwtracing/coresight/of_coresight.c +1 -0
index b68da18..b693a4b 100644
@@ -184,6 +184,7 @@ struct coresight_platform_data *of_get_coresight_platform_data(
 			break;
 		}
 	}
+	of_node_put(dn);
 
 	return pdata;
 }
Signature · 1 line
1.9.1
#2 lore raw

PATCH 2/2 hwtracing: coresight: of_coresight: add missing of_node_put after calling of_parse_phandle

Quoted 23 lines · Peter Chen

of_node_put needs to be called when the device node which is got from of_parse_phandle has finished using.

Cc linux-arm-kernel at lists.infradead.org
Cc Mathieu Poirier <[email protected]>
---
 drivers/hwtracing/coresight/of_coresight.c | 1 +
 1 file changed, 1 insertion(+)
drivers/hwtracing/coresight/of_coresight.c +1 -1
index b68da18..b693a4b 100644
@@ -184,6 +184,7 @@ struct coresight_platform_data *of_get_coresight_platform_data(
                        break;
                }
        }
+       of_node_put(dn);
 
        return pdata;
 }
--
Quoted 2 lines

1.9.1

Applied - thanks.
Mathieu

#3 lore raw

PATCH 1/2 hwspinlock: qcom_hwspinlock: add missing of_node_put after calling of_parse_phandle

In reply to Peter Chen
Quoted 6 lines · Peter Chen

of_node_put needs to be called when the device node which is got from of_parse_phandle has finished using.

Cc linux-arm-kernel at lists.infradead.org
Cc linux-arm-msm at vger.kernel.org

Applied.

Please use get_maintainer.pl to find out whom to send patches to, I only stumbled upon this while looking for something else.

Thanks,
Bjorn

Quoted 24 lines
---
 drivers/hwspinlock/qcom_hwspinlock.c | 1 +
 1 file changed, 1 insertion(+)
drivers/hwspinlock/qcom_hwspinlock.c +1 -0
index c752447..fa6880b 100644
@@ -98,6 +98,7 @@ static int qcom_hwspinlock_probe(struct platform_device *pdev)
 	}
 
 	regmap = syscon_node_to_regmap(syscon);
+	of_node_put(syscon);
 	if (IS_ERR(regmap))
 		return PTR_ERR(regmap);
 
Signature · 7 lines
1.9.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
author
#4 lore raw

PATCH 1/2 hwspinlock: qcom_hwspinlock: add missing of_node_put after calling of_parse_phandle

Quoted 6 lines · Peter Chen
Quoted 4 lines

of_node_put needs to be called when the device node which is got from of_parse_phandle has finished using.

Quoted 9 lines
Quoted 3 lines
Cc linux-arm-kernel at lists.infradead.org
Cc linux-arm-msm at vger.kernel.org

Applied.

Please use get_maintainer.pl to find out whom to send patches to, I only stumbled upon this while looking for something else.

There is no maintainer for this file. Below is the output for get_maintainer.pl:

$ ./scripts/get_maintainer.pl patch_0705_2/0001-hwspinlock-qcom_hwspinlock-add-missing-of_node_put-a.patch 
linux-kernel at vger.kernel.org (open list)

Thanks,
Peter

#5 lore raw

PATCH 1/2 hwspinlock: qcom_hwspinlock: add missing of_node_put after calling of_parse_phandle

Quoted 12 lines · Peter Chen
Quoted 12 lines · Peter Chen
Quoted 7 lines

of_node_put needs to be called when the device node which is got from of_parse_phandle has finished using.

Cc linux-arm-kernel at lists.infradead.org
Cc linux-arm-msm at vger.kernel.org

Applied.

Quoted 9 lines
Quoted 3 lines

Please use get_maintainer.pl to find out whom to send patches to, I only stumbled upon this while looking for something else.

There is no maintainer for this file. Below is the output for get_maintainer.pl:

$ ./scripts/get_maintainer.pl patch_0705_2/0001-hwspinlock-qcom_hwspinlock-add-missing-of_node_put-a.patch 
linux-kernel at vger.kernel.org (open list)

That's not good, sorry about that! I sent out a patch including the other files as well as hwlock related dt bindings.

Regards,
Bjorn