]> git.baikalelectronics.ru Git - kernel.git/commit
net/smc: adjust net_device refcount
authorUrsula Braun <ubraun@linux.vnet.ibm.com>
Thu, 21 Sep 2017 07:16:29 +0000 (09:16 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Sep 2017 22:31:02 +0000 (15:31 -0700)
commit3a8650c86f46fb892526aa8ee3cc01aa8abe1f88
treec30c272d454dcb8d010d661aa93462e3afd8b039
parent02be7593393f5e026f53a11287d0991d49e76d64
net/smc: adjust net_device refcount

smc_pnet_fill_entry() uses dev_get_by_name() adding a refcount to ndev.
The following smc_pnet_enter() has to reduce the refcount if the entry
to be added exists already in the pnet table.

Signed-off-by: Ursula Braun <ubraun@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/smc/smc_pnet.c