]> git.baikalelectronics.ru Git - kernel.git/commit
mptcp: fix 'use_ack' option access.
authorPaolo Abeni <pabeni@redhat.com>
Thu, 30 Apr 2020 13:01:54 +0000 (15:01 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 Apr 2020 19:23:22 +0000 (12:23 -0700)
commit21734d51b9cb3b0f815b166963909ab331cc7164
treeb37d96ed1fc96dcb3fa7fb5b86ee8fe962b89097
parent72e85d8e4b8cb4cb82eca39bf80f7de08c233533
mptcp: fix 'use_ack' option access.

The mentioned RX option field is initialized only for DSS
packet, we must access it only if 'dss' is set too, or
the subflow will end-up in a bad status, leading to
RFC violations.

Fixes: de25b6ecfdb8 ("mptcp: process MP_CAPABLE data option")
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mptcp/options.c