]> git.baikalelectronics.ru Git - kernel.git/commit
macvtap: Close a race between macvtap_open and macvtap_dellink.
authorEric W. Biederman <ebiederm@xmission.com>
Thu, 20 Oct 2011 04:26:01 +0000 (04:26 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 21 Oct 2011 06:53:06 +0000 (02:53 -0400)
commit413ad822139196e9554035d530ddbcdb56b582d9
tree07197b487004886a51a47c8fb4fe94e9e5bdc6a9
parent8894bde8b9b73289b9a7fa4c8c652919d692bc07
macvtap: Close a race between macvtap_open and macvtap_dellink.

There is a small window in macvtap_open between looking up a
networking device and calling macvtap_set_queue in which
macvtap_del_queues called from macvtap_dellink.   After
calling macvtap_del_queues it is totally incorrect to
allow macvtap_set_queue to proceed so prevent success by
reporting that all of the available queues are in use.

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