diff --git a/net/core/filter.c b/net/core/filter.c index 18da42a81d0c8bd89553205fd00c5aedd823dc8c..bf9bb755e369cf6be8cf077d8b5862c9ee7298b9 100644 --- a/net/core/filter.c +++ b/net/core/filter.c @@ -3845,8 +3845,7 @@ static bool sock_ops_is_valid_access(int off, int size, { if (type == BPF_WRITE) { switch (off) { - case offsetof(struct bpf_sock_ops, op) ... - offsetof(struct bpf_sock_ops, replylong[3]): + case offsetof(struct bpf_sock_ops, reply): break; default: return false;