RDMA/bnxt_re: Fix issue in the unload path
authorKalesh AP <kalesh-anakkur.purayil@broadcom.com>
Tue, 4 Feb 2025 08:21:24 +0000 (00:21 -0800)
committerLeon Romanovsky <leon@kernel.org>
Mon, 10 Feb 2025 08:39:25 +0000 (03:39 -0500)
commite2f105277411c4ebacd00d4ae1a57f693ba7d22d
tree5e4e9a1887802aec9b4434083db343097616bac4
parentf0df225d12fcb049429fb5bf5122afe143c2dd15
RDMA/bnxt_re: Fix issue in the unload path

The cited comment removed the netdev notifier register call
from the driver. But, it did not remove the cleanup code from
the unload path. As a result, driver unload is not clean and
resulted in undesired behaviour.

Fixes: d3b15fcc4201 ("RDMA/bnxt_re: Remove deliver net device event")
Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
Link: https://patch.msgid.link/1738657285-23968-4-git-send-email-selvin.xavier@broadcom.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/bnxt_re/bnxt_re.h
drivers/infiniband/hw/bnxt_re/main.c