]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - net/core/sock_map.c
Merge branch 'next.autofs' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
[linux.git] / net / core / sock_map.c
index 50916f9bc4f2e5b7814943e7528f46d5df44b502..eb114ee419b65a9c9dc282bcfe3f03ea23f49727 100644 (file)
@@ -345,7 +345,7 @@ static int sock_map_update_common(struct bpf_map *map, u32 idx,
                return -EINVAL;
        if (unlikely(idx >= map->max_entries))
                return -E2BIG;
-       if (unlikely(icsk->icsk_ulp_data))
+       if (unlikely(rcu_access_pointer(icsk->icsk_ulp_data)))
                return -EINVAL;
 
        link = sk_psock_init_link();