]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns: Fix object reference leaks in hns_dsaf_roce_reset()
authorHuang Zijiang <huang.zijiang@zte.com.cn>
Thu, 14 Feb 2019 06:41:45 +0000 (14:41 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Feb 2019 17:28:52 +0000 (12:28 -0500)
commitdce1a874afa3da0c9c243534f64909b5b2f0dd8a
treedd9ad92282ea6862fd36a9fa137d99093482605a
parent82bec6ae0e97bc2ceb477174dab0a43587f64d19
net: hns: Fix object reference leaks in hns_dsaf_roce_reset()

The of_find_device_by_node() takes a reference to the underlying device
structure, we should release that reference.

Signed-off-by: Huang Zijiang <huang.zijiang@zte.com.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c