]> git.baikalelectronics.ru Git - kernel.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)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Feb 2017 02:59:15 +0000 (21:59 -0500)
commit38b2d8e2b2c9e7872dcb0599370daf69cfcc0a56
tree60ec6dda407753d540aa5e28b407e7e449f14a8c
parent8e72a13f80008fa0be9ad14f8df95f9b1d3a2ebd
bnxt_en: fix pci cleanup in bnxt_init_one() failure path

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>
drivers/net/ethernet/broadcom/bnxt/bnxt.c