]> git.baikalelectronics.ru Git - kernel.git/commit
tun: Make tun_net_xmit atomic wrt tun_attach && tun_detach
authorEric W. Biederman <ebiederm@xmission.com>
Tue, 20 Jan 2009 11:02:28 +0000 (11:02 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Jan 2009 00:00:45 +0000 (16:00 -0800)
commitb1fe5e41eff7019c9a2c4821fd7621852011c8ff
treefc7f1c3cc8ef34a64a740a2938934dbd598f0d93
parent8f39ff3427ed44cd76aa2b3dd626dad7f8ad9436
tun: Make tun_net_xmit atomic wrt tun_attach && tun_detach

Currently this small race allows for a packet to be received when we
detach from an tun device and still be enqueued.  Not especially
important but not what the code is trying to do.

Signed-off-by: Eric W. Biederman <ebiederm@aristanetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tun.c