]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bnxt_en: fix pci cleanup in bnxt_init_one() failure path
authorSathya Perla <sathya.perla@broadcom.com>
Tue, 21 Feb 2017 00:25:18 +0000 (19:25 -0500)
committerChuck Anderson <chuck.anderson@oracle.com>
Mon, 6 Mar 2017 21:35:42 +0000 (13:35 -0800)
commitf1438bbe14b516a25103d9d6e1b2b080539e9a3d
treec0bc827ac135c5f22c054f92e2b9862564677744
parent2fea3aba36703e2cdd750534da47b4353bb64105
bnxt_en: fix pci cleanup in bnxt_init_one() failure path

Orabug: 25645429

In the bnxt_init_one() failure path, bar1 and bar2 are not
being unmapped.  This commit fixes this issue.  Reorganize the
code so that bnxt_init_one()'s failure path and bnxt_remove_one()
can call the same function to do the PCI cleanup.

Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit 17086399c113d933e1202697f85b8f0f82fcb8ce)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
Conflicts:
drivers/net/ethernet/broadcom/bnxt/bnxt.c
drivers/net/ethernet/broadcom/bnxt/bnxt.c