]> git.baikalelectronics.ru Git - kernel.git/commit
mptcp: sendmsg: reset iter on error redux
authorFlorian Westphal <fw@strlen.de>
Sun, 16 Aug 2020 21:14:20 +0000 (23:14 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Aug 2020 04:11:37 +0000 (21:11 -0700)
commit8ef6e1d9afc56682684cf32de6c31ecf7d348367
tree820241533efd4555882da00f2fefd68fb14318b7
parent4aa1f5aa6e5a1beb84d2f7127c775c48b4327644
mptcp: sendmsg: reset iter on error redux

This fix wasn't correct: When this function is invoked from the
retransmission worker, the iterator contains garbage and resetting
it causes a crash.

As the work queue should not be performance critical also zero the
msghdr struct.

Fixes: a7bb29252e3cfaa "(mptcp: sendmsg: reset iter on error)"
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mptcp/protocol.c