Re: [PATCH 1/2] tuntap: forbid calling TUNSETIFF when detached

From: Eric Dumazet
Date: Fri Jan 11 2013 - 09:55:36 EST


On Fri, 2013-01-11 at 16:50 +0800, Jason Wang wrote:

>
> + if (rcu_dereference_protected(tfile->detached, lockdep_rtnl_is_held()))
> + return -EINVAL;
> +

Thats an open coded rtnl_dereference()

(please cleanup the whole tun.c file)



--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/