Skip to content
Commit 48abfe05 authored by David S. Miller's avatar David S. Miller
Browse files

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: default avatarDavid S. Miller <davem@davemloft.net>
parent 8c0469cd
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment