]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Aug 2019 09:18:49 +0000 (11:18 +0200)
commit2e2e5cc8c6a6a4bc35ba6c8e2d886caeef11d675
tree22fa27dac2e185dd78a7e9826640a20272448a25
parent6b0429c343cacc43afabcb14a502ec6f06f4b26a
net: hns: Fix object reference leaks in hns_dsaf_roce_reset()

BugLink: https://bugs.launchpad.net/bugs/1837952
[ Upstream commit c969c6e7ab8cb42b5c787c567615474fdbad9d6a ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c