bnxt_en: fix pci cleanup in bnxt_init_one() failure path
Sathya Perla authored

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: default avatarMichael Chan <michael.chan@broadcom.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
17086399
Name Last commit Last update
Documentation Merge branch 'for-upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next
arch Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
block cfq-iosched: don't call wbt_disable_default() with IRQs disabled
certs certs: Add a secondary system keyring that can be added to dynamically
crypto crypto: algif_aead - Fix kernel panic on list_del
drivers bnxt_en: fix pci cleanup in bnxt_init_one() failure path
firmware WHENCE: use https://linuxtv.org for LinuxTV URLs
fs gfs2: Use rhashtable walk interface in glock_hash_walk
include net: mpls: Add support for netconf
init kbuild: modversions: add infrastructure for emitting relative CRCs
ipc ipc/sem.c: fix incorrect sem_lock pairing
kernel Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
lib rhashtable: Add nested tables
mm mm/slub.c: fix random_seq offset destruction
net Merge branch 'for-upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next
samples Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
scripts kbuild: modversions: add infrastructure for emitting relative CRCs
security Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
sound ALSA: hda - adding a new NV HDMI/DP codec ID in the driver
tools Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
usr kbuild: initramfs cleanup, set target from Kconfig
virt Merge tag 'kvm-arm-for-4.10-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm
.cocciconfig scripts: add Linux .cocciconfig for coccinelle
.get_maintainer.ignore Add hch to .get_maintainer.ignore
.gitattributes .gitattributes: set git diff driver for C source code files
.gitignore
.mailmap
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS
Makefile
README
Linux kernel
============

This file was moved to Documentation/admin-guide/README.rst

Please notice that there are several guides for kernel developers and users.
These guides can be rendered in a number of formats, like HTML and PDF.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.
See Documentation/00-INDEX for a list of what is contained in each file.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.