]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerJuerg Haefliger <juergh@canonical.com>
Wed, 24 Jul 2019 01:43:34 +0000 (19:43 -0600)
commitcd7e33af77b4eb20513eb0102317f67dd7cb1364
treeddb04fdccc4bc6669b0c0c460cce0951a899ccf2
parent41b316dbd3e7b88e1be63ddb082fb8322e3127ba
bnxt_en: Fix for system hang if request_irq fails

BugLink: https://bugs.launchpad.net/bugs/1835845
[ Upstream commit c58387ab1614f6d7fb9e244f214b61e7631421fc ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/net/ethernet/broadcom/bnxt/bnxt.c