linux/net/smc
Hans Wippel 09579ac803 net/smc: add missing dev_put
In the infiniband part, SMC currently uses get_netdev which calls
dev_hold on the returned net device. However, the SMC code never calls
dev_put on that net device resulting in a wrong reference count.

This patch adds a dev_put after the usage of the net device to fix the
issue.

Signed-off-by: Hans Wippel <hwippel@linux.vnet.ibm.com>
Signed-off-by: Ursula Braun <ubraun@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-09-21 15:31:02 -07:00
..
af_smc.c net/smc: synchronize buffer usage with device 2017-07-29 11:22:58 -07:00
Kconfig net/smc: remove Kconfig warning 2017-07-29 11:22:58 -07:00
Makefile smc: netlink interface for SMC sockets 2017-01-09 16:07:41 -05:00
smc_cdc.c net/smc: no socket state changes in tasklet context 2017-04-11 23:01:14 -04:00
smc_cdc.h smc: socket closing and linkgroup cleanup 2017-01-09 16:07:40 -05:00
smc_clc.c net/smc: use separate memory regions for RMBs 2017-07-29 11:22:58 -07:00
smc_clc.h smc: link layer control (LLC) 2017-01-09 16:07:40 -05:00
smc_close.c net/smc: destruct non-accepted sockets 2017-04-11 23:01:14 -04:00
smc_close.h net/smc: no socket state changes in tasklet context 2017-04-11 23:01:14 -04:00
smc_core.c net/smc: synchronize buffer usage with device 2017-07-29 11:22:58 -07:00
smc_core.h net/smc: synchronize buffer usage with device 2017-07-29 11:22:58 -07:00
smc_diag.c smc: netlink interface for SMC sockets 2017-01-09 16:07:41 -05:00
smc_ib.c net/smc: add missing dev_put 2017-09-21 15:31:02 -07:00
smc_ib.h net/smc: synchronize buffer usage with device 2017-07-29 11:22:58 -07:00
smc_llc.c smc: link layer control (LLC) 2017-01-09 16:07:40 -05:00
smc_llc.h smc: link layer control (LLC) 2017-01-09 16:07:40 -05:00
smc_pnet.c net/smc: return active RoCE port only 2017-04-11 23:01:14 -04:00
smc_pnet.h net/smc: remove useless smc_ib_devices_list check 2017-04-11 23:01:14 -04:00
smc_rx.c net/smc: synchronize buffer usage with device 2017-07-29 11:22:58 -07:00
smc_rx.h smc: receive data from RMBE 2017-01-09 16:07:40 -05:00
smc_tx.c net/smc: synchronize buffer usage with device 2017-07-29 11:22:58 -07:00
smc_tx.h smc: receive data from RMBE 2017-01-09 16:07:40 -05:00
smc_wr.c net/smc: register RMB-related memory region 2017-07-29 11:22:58 -07:00
smc_wr.h net/smc: register RMB-related memory region 2017-07-29 11:22:58 -07:00
smc.h net/smc: no socket state changes in tasklet context 2017-04-11 23:01:14 -04:00