]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns: Fixes the missing put_device in positive leg for roce reset
authorSalil Mehta <salil.mehta@huawei.com>
Mon, 18 Feb 2019 17:40:32 +0000 (17:40 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 Feb 2019 01:45:00 +0000 (17:45 -0800)
commita6dc3810598dd91b17dd0cbef448d6c58ac2ef10
tree1bf746b882ec2191b4b467ed953eb837fbd4da10
parent5362d052b82493d0a404ddaac3d0a38c26e0bd19
net: hns: Fixes the missing put_device in positive leg for roce reset

This patch fixes the missing device reference release-after-use in
the positive leg of the roce reset API of the HNS DSAF.

Fixes: dce1a874afa3 ("net: hns: Fix object reference leaks in hns_dsaf_roce_reset()")
Reported-by: John Garry <john.garry@huawei.com>
Signed-off-by: Salil Mehta <salil.mehta@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c