]> www.infradead.org Git - users/jedix/linux-maple.git/commit
RDMA/mlx5: Call dev_put() after the blocking notifier
authorChiara Meiohas <cmeiohas@nvidia.com>
Thu, 31 Oct 2024 13:36:50 +0000 (15:36 +0200)
committerLeon Romanovsky <leon@kernel.org>
Mon, 4 Nov 2024 11:57:20 +0000 (06:57 -0500)
commit6d9c7b272966f13ebbf39687620f395d97f4d15d
tree860844ba9969e4d2478287de09319f26e5cc87b1
parenteb3d354efb39576c86c1e659807c57c557f2f68a
RDMA/mlx5: Call dev_put() after the blocking notifier

Move dev_put() call to occur directly after the blocking
notifier, instead of within the event handler.

Fixes: 8d159eb2117b ("RDMA/mlx5: Use IB set_netdev and get_netdev functions")
Signed-off-by: Chiara Meiohas <cmeiohas@nvidia.com>
Link: https://patch.msgid.link/342ff94b3dcbb07da1c7dab862a73933d604b717.1730381292.git.leon@kernel.org
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/mlx5/main.c
drivers/net/ethernet/mellanox/mlx5/core/lag/lag.c