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)
commitb9f227c37071d1115cec791b328b684e2c4ba414
tree4e9aa72c19e959194f004950d1c70c5969550fb7
parent2351abe6f8736167a187cec867933bc66c3284c0
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