Skip to content

Commit 1faebcc

Browse files
Geliang Tangintel-lab-lkp
authored andcommitted
Squash to "bpf: Add mptcp_subflow bpf_iter"
Address Martin's comments in v1: - bpf_iter_mptcp_subflow_new returns -EINVAL when msk socket lock isn't held. Signed-off-by: Geliang Tang <[email protected]>
1 parent 081af0b commit 1faebcc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

net/mptcp/bpf.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,8 @@ bpf_iter_mptcp_subflow_new(struct bpf_iter_mptcp_subflow *it,
252252
if (!msk)
253253
return -EINVAL;
254254

255-
msk_owned_by_me(msk);
255+
if (!lockdep_sock_is_held((const struct sock *)msk))
256+
return -EINVAL;
256257

257258
kit->pos = &msk->conn_list;
258259
return 0;

0 commit comments

Comments
 (0)