]> git.baikalelectronics.ru Git - kernel.git/commit
kcm: Call strp_stop before strp_done in kcm_attach
authorTom Herbert <tom@quantonium.net>
Wed, 14 Feb 2018 17:22:42 +0000 (09:22 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 14 Feb 2018 20:38:39 +0000 (15:38 -0500)
commit8eefe9c1d14bff9c4b7532990199279410755c85
tree41bdf2216ed27acc86855b741ff8e08d1c822cc3
parent64d69d234345293faa2324b95b371134d58c1ac2
kcm: Call strp_stop before strp_done in kcm_attach

In kcm_attach strp_done is called when sk_user_data is already
set to fail the attach. strp_done needs the strp to be stopped and
warns if it isn't. Call strp_stop in this case to eliminate the
warning message.

Reported-by: syzbot+88dfb55e4c8b770d86e3@syzkaller.appspotmail.com
Fixes: 39a952e7e876aaf77 ("kcm: Check if sk_user_data already set in kcm_attach"
Signed-off-by: Tom Herbert <tom@quantonium.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/kcm/kcmsock.c