]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
bnxt_en: Fix for system hang if request_irq fails
authorVikas Gupta <vikas.gupta@broadcom.com>
Mon, 9 Jul 2018 06:24:52 +0000 (02:24 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 9 Jul 2018 23:27:14 +0000 (16:27 -0700)
commitc58387ab1614f6d7fb9e244f214b61e7631421fc
tree221e21494ef4bf95260923a992cc2f5905a5a880
parent30f529473ec962102e8bcd33a6a04f1e1b490ae2
bnxt_en: Fix for system hang if request_irq fails

Fix bug in the error code path when bnxt_request_irq() returns failure.
bnxt_disable_napi() should not be called in this error path because
NAPI has not been enabled yet.

Fixes: c0c050c58d84 ("bnxt_en: New Broadcom ethernet driver.")
Signed-off-by: Vikas Gupta <vikas.gupta@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt.c