commit | 2271150bfb814b72ec57ae2fdf66e39da2eafafd | [log] [tgz] |
---|---|---|
author | Johan Hovold <johan@kernel.org> | Thu Nov 03 18:40:22 2016 +0100 |
committer | David S. Miller <davem@davemloft.net> | Mon Nov 07 13:17:30 2016 -0500 |
tree | e5416d0f9b795b5a888ab77c95f20d535479115f | |
parent | 6bed0118012ea350acbe606ab3ae0ed3d60ed5f3 [diff] |
net: hns: fix device reference leaks Make sure to drop the reference taken by class_find_device() in hnae_get_handle() on errors and when later releasing the handle. Fixes: 6fe6611ff275 ("net: add Hisilicon Network Subsystem...") Cc: Yisen Zhuang <yisen.zhuang@huawei.com> Cc: Salil Mehta <salil.mehta@huawei.com> Signed-off-by: Johan Hovold <johan@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>