aboutsummaryrefslogtreecommitdiff
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorDavid Ahern <[email protected]>2024-07-10 13:33:10 -0700
committerLeon Romanovsky <[email protected]>2024-07-14 10:32:57 +0300
commit2043a14fb3de9d88440b21590f714306fcbbd55f (patch)
tree046d89dfdc0169f3fe13c3baff600435720470d4 /lib/memory-notifier-error-inject.c
parentbbddfa2255dd0800209697fd12378e02ed05f833 (diff)
RDMA: Fix netdev tracker in ib_device_set_netdev
If a netdev has already been assigned, ib_device_set_netdev needs to release the reference on the older netdev but it is mistakenly being called for the new netdev. Fix it and in the process use netdev_put to be symmetrical with the netdev_hold. Fixes: 09f530f0c6d6 ("RDMA: Add netdevice_tracker to ib_device_set_netdev()") Signed-off-by: David Ahern <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Leon Romanovsky <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions