Skip to content

Commit 9d6474e

Browse files
jasowangdavem330
authored andcommitted
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: cd5681d ("tuntap: rename struct tun_steering_prog to struct tun_prog") Cc: Daniel Borkmann <[email protected]> Signed-off-by: Jason Wang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent ebdd7b4 commit 9d6474e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/net/tun.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2225,7 +2225,8 @@ static void tun_prog_free(struct rcu_head *rcu)
22252225
kfree(prog);
22262226
}
22272227

2228-
static int __tun_set_ebpf(struct tun_struct *tun, struct tun_prog **prog_p,
2228+
static int __tun_set_ebpf(struct tun_struct *tun,
2229+
struct tun_prog __rcu **prog_p,
22292230
struct bpf_prog *prog)
22302231
{
22312232
struct tun_prog *old, *new = NULL;

0 commit comments

Comments
 (0)