]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt_en: Free context memory after disabling PCI in probe error path.
authorMichael Chan <michael.chan@broadcom.com>
Sun, 22 Mar 2020 20:40:04 +0000 (16:40 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Apr 2020 09:01:44 +0000 (11:01 +0200)
commita28cb64e0fd3778b3c03ecd098ab3ee2cb4c1fef
tree3fbe4ee1a1500718225286c0996453b7cfba28c8
parent5f613df7dd63ae2f6ad6952aa11d2de93d3fca88
bnxt_en: Free context memory after disabling PCI in probe error path.

[ Upstream commit a3e614dae0dd710749d4963ceb105d566a6c55ac ]

Other shutdown code paths will always disable PCI first to shutdown DMA
before freeing context memory.  Do the same sequence in the error path
of probe to be safe and consistent.

Fixes: 704f7af87030 ("bnxt_en: Disable bus master during PCI shutdown and driver unload.")
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/broadcom/bnxt/bnxt.c