Skip to content

Commit 64863e4

Browse files
committed
tgupdate: merge t/upstream base into t/upstream
2 parents c0563ee + a1d4297 commit 64863e4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

net/mptcp/options.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1119,7 +1119,9 @@ static bool add_addr_hmac_valid(struct mptcp_sock *msk,
11191119
return hmac == mp_opt->ahmac;
11201120
}
11211121

1122-
/* Return false if a subflow has been reset, else return true */
1122+
/* Return false in case of error (or subflow has been reset),
1123+
* else return true.
1124+
*/
11231125
bool mptcp_incoming_options(struct sock *sk, struct sk_buff *skb)
11241126
{
11251127
struct mptcp_subflow_context *subflow = mptcp_subflow_ctx(sk);
@@ -1223,7 +1225,7 @@ bool mptcp_incoming_options(struct sock *sk, struct sk_buff *skb)
12231225

12241226
mpext = skb_ext_add(skb, SKB_EXT_MPTCP);
12251227
if (!mpext)
1226-
return true;
1228+
return false;
12271229

12281230
memset(mpext, 0, sizeof(*mpext));
12291231

0 commit comments

Comments
 (0)