mbox series

[net,0/2] net: Fix 2 OF device node refcount leakage issues

Message ID 20241212-drivers_fix-v1-0-a3fbb0bf6846@quicinc.com (mailing list archive)
Headers show
Series net: Fix 2 OF device node refcount leakage issues | expand

Message

Zijun Hu Dec. 12, 2024, 3:06 p.m. UTC
This patch series is to fix 2 OF device node refcount leakage issues.

Signed-off-by: Zijun Hu <quic_zijuhu@quicinc.com>
---
Zijun Hu (2):
      net: pse-pd: tps23881: Fix device node refcount leakage in tps23881_get_of_channels()
      net: bcmasp: Fix device node refcount leakage in bcmasp_probe()

 drivers/net/ethernet/broadcom/asp2/bcmasp.c | 1 +
 drivers/net/pse-pd/tps23881.c               | 1 +
 2 files changed, 2 insertions(+)
---
base-commit: ff7afaeca1a15fbeaa2c4795ee806c0667bd77b2
change-id: 20241206-drivers_fix-735f56ed5ec7

Best regards,

Comments

Kory Maincent Dec. 12, 2024, 3:33 p.m. UTC | #1
On Thu, 12 Dec 2024 23:06:53 +0800
Zijun Hu <zijun_hu@icloud.com> wrote:

> This patch series is to fix 2 OF device node refcount leakage issues.
> 
> Signed-off-by: Zijun Hu <quic_zijuhu@quicinc.com>
> ---
> Zijun Hu (2):
>       net: pse-pd: tps23881: Fix device node refcount leakage in
> tps23881_get_of_channels() net: bcmasp: Fix device node refcount leakage in
> bcmasp_probe()

Thanks for the patch. This fix was already sent by Zhang Zekun:
https://lore.kernel.org/netdev/20241024015909.58654-1-zhangzekun11@huawei.com/

net maintainers would prefer to have the API changed as calling of_node_get
before of_find_node_by_name is not intuitive.

Still, don't know if we should fix it until the API is changed?  

Regards,
Zijun Hu Dec. 13, 2024, 10:50 a.m. UTC | #2
On 2024/12/12 23:33, Kory Maincent wrote:
> On Thu, 12 Dec 2024 23:06:53 +0800
> Zijun Hu <zijun_hu@icloud.com> wrote:
> 
>> This patch series is to fix 2 OF device node refcount leakage issues.
>>
>> Signed-off-by: Zijun Hu <quic_zijuhu@quicinc.com>
>> ---
>> Zijun Hu (2):
>>       net: pse-pd: tps23881: Fix device node refcount leakage in
>> tps23881_get_of_channels() net: bcmasp: Fix device node refcount leakage in
>> bcmasp_probe()
> 
> Thanks for the patch. This fix was already sent by Zhang Zekun:
> https://lore.kernel.org/netdev/20241024015909.58654-1-zhangzekun11@huawei.com/
> 
thank you for sharing this info.

> net maintainers would prefer to have the API changed as calling of_node_get
> before of_find_node_by_name is not intuitive.
> 

agree.

> Still, don't know if we should fix it until the API is changed?  
> 

(^^)
> Regards,