kcm: Fix locking issue
authorTom Herbert <tom@herbertland.com>
Tue, 23 Aug 2016 18:55:31 +0000 (11:55 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 23 Aug 2016 23:23:12 +0000 (16:23 -0700)
commit1616b38f201945f5fc88aa09b525e3625777aa7c
tree0d5f890a7b0d21fa7c4d7580a70e0bfcae2c0738
parentcff6a334e63420e95ec40dc7fcdc0b8258615760
kcm: Fix locking issue

Lock the lower socket in kcm_unattach. Release during call to strp_done
since that function cancels the RX timers and work queue with sync.

Also added some status information in psock reporting.

Signed-off-by: Tom Herbert <tom@herbertland.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/kcm/kcmproc.c
net/kcm/kcmsock.c