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)
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>

No differences found