Skip to content
Commit 43e2ada3 authored by Ursula Braun's avatar Ursula Braun Committed by David S. Miller
Browse files

net/smc: dev_put for netdev after usage of ib_query_gid()



For RoCEs ib_query_gid() takes a reference count on the net_device.
This reference count must be decreased by the caller.

Signed-off-by: default avatarUrsula Braun <ubraun@linux.vnet.ibm.com>
Reported-by: default avatarParav Pandit <parav@mellanox.com>
Reviewed-by: default avatarParav Pandit <parav@mellanox.com>
Fixes: 0cfdd8f9

 ("smc: connection and link group creation")
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d921c420
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment