]> git.baikalelectronics.ru Git - kernel.git/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)
committerDavid S. Miller <davem@davemloft.net>
Sun, 16 Dec 2018 20:07:32 +0000 (12:07 -0800)
commitd0a1ae4eabbba6aa7b5ac8982d0934533afede5d
tree01e7bd4b1a99fb6f4481d34aad6dfdfbe8f69ed4
parentc6e607de96393950c0f64c912699b5f2f745c0f7
net: hns: Free irq when exit from abnormal branch

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>
drivers/net/ethernet/hisilicon/hns/hns_enet.c