IB/mlx4: Follow mirror sequence of device add during device removal
Parav Pandit authored
[ Upstream commit 89f988d9 ]

Current code device add sequence is:

ib_register_device()
ib_mad_init()
init_sriov_init()
register_netdev_notifier()

Therefore, the remove sequence should be,

unregister_netdev_notifier()
close_sriov()
mad_cleanup()
ib_unregister_device()

However it is not above.
Hence, make do above remove sequence.

Fixes: fa417f7b

 ("IB/mlx4: Add support for IBoE")
Signed-off-by: default avatarParav Pandit <parav@mellanox.com>
Reviewed-by: default avatarMaor Gottlieb <maorg@mellanox.com>
Signed-off-by: default avatarLeon Romanovsky <leonro@mellanox.com>
Link: https://lore.kernel.org/r/20191212091214.315005-3-leon@kernel.org

Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
556f40b7
Name Last commit Last update
Documentation USB: documentation: flags on usb-storage versus UAS
arch s390/cpum_sf: Avoid SBD overflow condition in irq handler
block blk-mq: make sure that line break can be printed
certs Replace magic for trusting the secondary keyring with #define
crypto crypto: user - fix memory leak in crypto_report
drivers IB/mlx4: Follow mirror sequence of device add during device removal
firmware License cleanup: add SPDX GPL-2.0 license identifier to files with no license
fs filldir[64]: remove WARN_ON_ONCE() for bad directory entries
include nvme_fc: add module to ops template to allow module references
init fork: fix some -Wmissing-prototypes warnings
ipc ipc/mqueue.c: only perform resource calculation if user valid
kernel ptp: fix the race between the release of ptp_clock and cdev
lib dma-debug: add a schedule point in debug_dma_dump_mappings()
mm mm/shmem.c: cast the type of unmap_start to u64
net net: make socket read/write_iter() honor IOCB_NOWAIT
samples samples: pktgen: fix proc_cmd command result check logic
scripts scripts/kallsyms: fix definitely-lost memory leak
security apparmor: fix unsigned len comparison with less than zero
sound ALSA: hda - Downgrade error message for single-cmd fallback
tools perf strbuf: Remove redundant va_end() in strbuf_addv()
usr kbuild: clean compressed initramfs image
virt KVM: arm/arm64: vgic: Don't rely on the wrong pending table
.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 kbuild: rpm-pkg: keep spec file until make mrproper
.mailmap .mailmap: Add Maciej W. Rozycki's Imagination e-mail address
COPYING [PATCH] update FSF address in COPYING
CREDITS MAINTAINERS: update TPM driver infrastructure changes
Kbuild License cleanup: add SPDX GPL-2.0 license identifier to files with no license
Kconfig License cleanup: add SPDX GPL-2.0 license identifier to files with no license
MAINTAINERS USB: rio500: Remove Rio 500 kernel driver
Makefile Linux 4.14.162
README README: add a new README file, pointing to the Documentation/
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.