summaryrefslogtreecommitdiffstats
path: root/drivers/net/tun.c
diff options
context:
space:
mode:
authorJason Wang <jasowang@redhat.com>2018-01-22 03:55:38 +0100
committerDavid S. Miller <davem@davemloft.net>2018-01-22 15:16:18 +0100
commit9d6474e458b13a94a0d5b141f2b8f38adf1991ae (patch)
treefc06a8968b7fb49657ca8d0fc1f7a87243cd4d54 /drivers/net/tun.c
parentMerge branch 'mlxsw-Add-support-for-mirror-action-with-flower' (diff)
downloadlinux-9d6474e458b13a94a0d5b141f2b8f38adf1991ae.tar.xz
linux-9d6474e458b13a94a0d5b141f2b8f38adf1991ae.zip
tun: add missing rcu annotation
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>
Diffstat (limited to 'drivers/net/tun.c')
-rw-r--r--drivers/net/tun.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/tun.c b/drivers/net/tun.c
index 698874684b4e..2bc18b16a45b 100644
--- a/drivers/net/tun.c
+++ b/drivers/net/tun.c
@@ -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;