]> git.baikalelectronics.ru Git - kernel.git/commit
net/smc: lock smc_lgr_list in port_terminate()
authorHans Wippel <hwippel@linux.ibm.com>
Wed, 23 May 2018 14:38:10 +0000 (16:38 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 May 2018 20:02:35 +0000 (16:02 -0400)
commitea1efcaa3923ea60476d1c86e1a4f17bedce9577
tree4e9aa72c19e959194f004950d1c70c5969550fb7
parent87f5fbd593384d94f5e58ca0da90602fd7cd40fc
net/smc: lock smc_lgr_list in port_terminate()

Currently, smc_port_terminate() is not holding the lock of the lgr list
while it is traversing the list. This patch adds locking to this
function and changes smc_lgr_terminate() accordingly.

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