]> git.itanic.dy.fi Git - linux-stable/commit
net: hns: Free irq when exit from abnormal branch
authorYonglong Liu <liuyonglong@huawei.com>
Sat, 15 Dec 2018 03:53:25 +0000 (11:53 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Jan 2019 09:00:59 +0000 (10:00 +0100)
commit02ad6ced13d71d8af63c6195ac1a8205d8d40e2f
tree90eb78bcd1f51e6e5818fa4f8212bcc8681416ee
parent5ddca1a9915f48f583186c627865d20f1e435d23
net: hns: Free irq when exit from abnormal branch

[ Upstream commit c82bd077e1ba3dd586569c733dc6d3dd4b0e43cd ]

1.In "hns_nic_init_irq", if request irq fail at index i,
  the function return directly without releasing irq resources
  that already requested.

2.In "hns_nic_net_up" after "hns_nic_init_irq",
  if exceptional branch occurs, irqs that already requested
  are not release.

Signed-off-by: Yonglong Liu <liuyonglong@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/hisilicon/hns/hns_enet.c