All of lore.kernel.org
 help / color / mirror / Atom feed
* net: hns: question regarding ae_node device node refcounting
@ 2018-12-22 21:54 Alexey Khoroshilov
  2019-01-11 19:43 ` Salil Mehta
  0 siblings, 1 reply; 2+ messages in thread
From: Alexey Khoroshilov @ 2018-12-22 21:54 UTC (permalink / raw)
  To: Yisen Zhuang, Salil Mehta, Peng Li
  Cc: Alexey Khoroshilov, David S. Miller, netdev, linux-kernel, ldv-project

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?

--
Alexey Khoroshilov
Linux Verification Center, ISPRAS
web: http://linuxtesting.org


^ permalink raw reply	[flat|nested] 2+ messages in thread

* RE: hns: question regarding ae_node device node refcounting
  2018-12-22 21:54 net: hns: question regarding ae_node device node refcounting Alexey Khoroshilov
@ 2019-01-11 19:43 ` Salil Mehta
  0 siblings, 0 replies; 2+ messages in thread
From: Salil Mehta @ 2019-01-11 19:43 UTC (permalink / raw)
  To: Alexey Khoroshilov, Zhuangyuzeng (Yisen), lipeng (Y)
  Cc: David S. Miller, netdev, linux-kernel, ldv-project

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-01-11 19:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-22 21:54 net: hns: question regarding ae_node device node refcounting Alexey Khoroshilov
2019-01-11 19:43 ` Salil Mehta

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.