cpuidle: Fix reference count on CPU node
Subsystems (2)
PATCH 1/1 cpuidle: Fix reference count on CPU node
For the qcom-spm driver, an early return was not calling the proper of_node_put call for a previously acquired device node.
--- drivers/cpuidle/cpuidle-qcom-spm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/cpuidle/cpuidle-qcom-spm.c +3 -1
@@ -96,8 +96,10 @@ static int spm_cpuidle_register(struct device *cpuidle_dev, int cpu)return -ENODEV ; saw_node =of_parse_phandle (cpu_node,"qcom,saw" ,0 ); -if (!saw_node) +if (!saw_node) { +of_node_put (cpu_node);return -ENODEV ; + } pdev =of_find_device_by_node (saw_node);of_node_put (saw_node);
Signature · 1 line
2.46.0
Quoted 14 lines · Miquel Sabaté Solà
For the qcom-spm driver, an early return was not calling the proper
of_node_putcall for a previously acquired device node.Signed-off-by Miquel Sabaté Solà <[email protected]>--- drivers/cpuidle/cpuidle-qcom-spm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)drivers/cpuidle/cpuidle-qcom-spm.c +0
-0@@ -96,8 +96,10 @@ static int spm_cpuidle_register(struct device *cpuidle_dev, int cpu)return -ENODEV ;
drivers/cpuidle/cpuidle-qcom-spm.c static int spm_cpuidle_register(struct device *cpuidle_dev, int cpu) · line 105
Quoted 10 lines
drivers/cpuidle/cpuidle-qcom-spm.c +3
-1saw_node =of_parse_phandle (cpu_node,"qcom,saw" ,0 ); -if (!saw_node) +if (!saw_node) { +of_node_put (cpu_node);return -ENODEV ; + } pdev =of_find_device_by_node (saw_node);of_node_put (saw_node);
Gently ping for a fix in the same spirit as [1].
Could you take a look whenever you have some time?
Thanks!
Miquel
Quoted 29 lines · Miquel Sabaté Solà
Quoted 14 lines · Miquel Sabaté Solà
For the qcom-spm driver, an early return was not calling the proper
of_node_putcall for a previously acquired device node.Signed-off-by Miquel Sabaté Solà <[email protected]>--- drivers/cpuidle/cpuidle-qcom-spm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)drivers/cpuidle/cpuidle-qcom-spm.c +0
-0@@ -96,8 +96,10 @@ static int spm_cpuidle_register(struct device *cpuidle_dev, int cpu)return -ENODEV ;drivers/cpuidle/cpuidle-qcom-spm.c static int spm_cpuidle_register(struct device *cpuidle_dev, int cpu) · line 105
Quoted 10 lines
drivers/cpuidle/cpuidle-qcom-spm.c +3
-1saw_node =of_parse_phandle (cpu_node,"qcom,saw" ,0 ); -if (!saw_node) +if (!saw_node) { +of_node_put (cpu_node);return -ENODEV ; + } pdev =of_find_device_by_node (saw_node);of_node_put (saw_node);Gently ping for a fix in the same spirit as [1].
Quoted 6 lines
Could you take a look whenever you have some time?
Thanks!
Miquel
Gently ping. Could someone take a look at this fix?
Thanks,
Miquel
Quoted 36 lines · Miquel Sabaté Solà
Quoted 34 lines · Miquel Sabaté Solà
Quoted 14 lines · Miquel Sabaté Solà
For the qcom-spm driver, an early return was not calling the proper
of_node_putcall for a previously acquired device node.Signed-off-by Miquel Sabaté Solà <[email protected]>--- drivers/cpuidle/cpuidle-qcom-spm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)drivers/cpuidle/cpuidle-qcom-spm.c +0
-0@@ -96,8 +96,10 @@ static int spm_cpuidle_register(struct device *cpuidle_dev, int cpu)return -ENODEV ;drivers/cpuidle/cpuidle-qcom-spm.c static int spm_cpuidle_register(struct device *cpuidle_dev, int cpu) · line 105
Quoted 10 lines
drivers/cpuidle/cpuidle-qcom-spm.c +3
-1saw_node =of_parse_phandle (cpu_node,"qcom,saw" ,0 ); -if (!saw_node) +if (!saw_node) { +of_node_put (cpu_node);return -ENODEV ; + } pdev =of_find_device_by_node (saw_node);of_node_put (saw_node);Gently ping for a fix in the same spirit as [1].
Could you take a look whenever you have some time?
Thanks!
Miquel
Quoted 6 lines
Quoted 1 line
Gently ping. Could someone take a look at this fix?
Thanks,
Miquel
Hello,
This is most probably too late for 6.12, but might this be included for 6.13?
Could you take a look?
Thanks,
Miquel
Quoted 47 lines · Miquel Sabaté Solà
Quoted 36 lines · Miquel Sabaté Solà
Quoted 34 lines · Miquel Sabaté Solà
Quoted 14 lines · Miquel Sabaté Solà
For the qcom-spm driver, an early return was not calling the proper
of_node_putcall for a previously acquired device node.Signed-off-by Miquel Sabaté Solà <[email protected]>--- drivers/cpuidle/cpuidle-qcom-spm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)drivers/cpuidle/cpuidle-qcom-spm.c +0
-0@@ -96,8 +96,10 @@ static int spm_cpuidle_register(struct device *cpuidle_dev, int cpu)return -ENODEV ;drivers/cpuidle/cpuidle-qcom-spm.c static int spm_cpuidle_register(struct device *cpuidle_dev, int cpu) · line 105
Quoted 10 lines
drivers/cpuidle/cpuidle-qcom-spm.c +3
-1saw_node =of_parse_phandle (cpu_node,"qcom,saw" ,0 ); -if (!saw_node) +if (!saw_node) { +of_node_put (cpu_node);return -ENODEV ; + } pdev =of_find_device_by_node (saw_node);of_node_put (saw_node);Gently ping for a fix in the same spirit as [1].
Could you take a look whenever you have some time?
Thanks!
MiquelQuoted 6 lines
Quoted 1 line
Gently ping. Could someone take a look at this fix?
Thanks,
MiquelHello,
Quoted 7 lines
This is most probably too late for 6.12, but might this be included for 6.13?
Could you take a look?
Thanks,
Miquel
Hello,
Gently ping. Could you please take a look at this fix?
Thanks,
Miquel
Quoted 8 lines · Miquel Sabaté Solà
For the qcom-spm driver, an early return was not calling the proper
of_node_putcall for a previously acquired device node.Signed-off-by Miquel Sabaté Solà <[email protected]>--- drivers/cpuidle/cpuidle-qcom-spm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
Signature · 2 lines
With best wishes Dmitry