tun: Fix minor race in TUNSETLINK ioctl handling.
commit48abfe05cd01279afe27159e98d7c7f932598f42
authorDavid S. Miller <davem@davemloft.net>
Thu, 24 Apr 2008 02:37:58 +0000 (23 19:37 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 24 Apr 2008 02:37:58 +0000 (23 19:37 -0700)
treeb2a408b97806ee86003a804734972523453b8164
parent8c0469cdd08df4dacabc8ca33256ce20de43d73f
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