lkml.org 
[lkml]   [2019]   [Jan]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRE: hns: question regarding ae_node device node refcounting
Date
Hi Alexey,

> From: Alexey Khoroshilov [mailto:khoroshilov@ispras.ru]
> Sent: Saturday, December 22, 2018 9:55 PM
> To: Zhuangyuzeng (Yisen) <yisen.zhuang@huawei.com>; Salil Mehta
> <salil.mehta@huawei.com>; lipeng (Y) <lipeng321@huawei.com>
> Cc: Alexey Khoroshilov <khoroshilov@ispras.ru>; David S. Miller
> <davem@davemloft.net>; netdev@vger.kernel.org; linux-
> kernel@vger.kernel.org; ldv-project@linuxtesting.org
> Subject: net: hns: question regarding ae_node device node refcounting
>
> Hello,
>
> hns_nic_dev_probe() increments refcount of ae_node device node:
> ae_node = of_parse_phandle(dev->of_node, "ae-handle", 0);
>
> But there is no of_node_put() for ae_node.
> What is the right place to decrement the ae_node refount?
>
> Should it be placed in hns_nic_dev_probe() or in hns_nic_dev_remove()?
> Or may be it is managed by fwnode somehow?

Thanks for bringing this to notice. Yes, you are right of_node_put()
is missing. We will float a fix for this soon.

Cheers
Salil

\
 
 \ /
  Last update: 2019-01-11 20:44    [W:0.022 / U:3.760 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site