net/smc: dev_put for netdev after usage of ib_query_gid()
authorUrsula Braun <ubraun@linux.vnet.ibm.com>
Wed, 11 Oct 2017 11:47:23 +0000 (13:47 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 12 Oct 2017 19:20:27 +0000 (12:20 -0700)
commit43e2ada3e06aefe3596be75bd05b34ef14fd1f7c
tree1f6ee517e6b34cfa5f115847c2bc6467f2a449c2
parentd921c420d2efa5731011b922e5a2f2ad33203c0b
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: Ursula Braun <ubraun@linux.vnet.ibm.com>
Reported-by: Parav Pandit <parav@mellanox.com>
Reviewed-by: Parav Pandit <parav@mellanox.com>
Fixes: 0cfdd8f92cac ("smc: connection and link group creation")
Signed-off-by: David S. Miller <davem@davemloft.net>
net/smc/smc_core.c