]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
tun: add missing rcu annotation
authorJason Wang <jasowang@redhat.com>
Mon, 22 Jan 2018 02:55:38 +0000 (10:55 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 Jan 2018 14:16:18 +0000 (09:16 -0500)
This patch fixes the following sparse warnings:

drivers/net/tun.c:2241:15: error: incompatible types in comparison expression (different address spaces)

Fixes: cd5681d7d890 ("tuntap: rename struct tun_steering_prog to struct tun_prog")
Cc: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tun.c

index 698874684b4e51801e4531f581ccff3ed46bef5a..2bc18b16a45bd60fd230c926fccfbba36ba92f4f 100644 (file)
@@ -2225,7 +2225,8 @@ static void tun_prog_free(struct rcu_head *rcu)
        kfree(prog);
 }
 
-static int __tun_set_ebpf(struct tun_struct *tun, struct tun_prog **prog_p,
+static int __tun_set_ebpf(struct tun_struct *tun,
+                         struct tun_prog __rcu **prog_p,
                          struct bpf_prog *prog)
 {
        struct tun_prog *old, *new = NULL;