]> git.baikalelectronics.ru Git - kernel.git/commit
tun: Fix minor race in TUNSETLINK ioctl handling.
authorDavid S. Miller <davem@davemloft.net>
Thu, 24 Apr 2008 02:37:58 +0000 (19:37 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 24 Apr 2008 02:37:58 +0000 (19:37 -0700)
commit81db7263440934d10560787b4a5beca88a23bf4e
treeb2a408b97806ee86003a804734972523453b8164
parent4fe3e1a28ffe6132d994940c2829957d29e032c1
tun: Fix minor race in TUNSETLINK ioctl handling.

Noticed by Alan Cox.

The IFF_UP test is a bit racey, because other entities
outside of this driver's ioctl handler can modify that
state, even though this ioctl handler runs under
lock_kernel().

Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tun.c