From: Eric W. Biederman Date: Thu, 20 Oct 2011 04:26:01 +0000 (+0000) Subject: macvtap: Close a race between macvtap_open and macvtap_dellink. X-Git-Tag: v3.2-rc1~182^2~26 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=99f34b38cdc8f75a4b9adb5a617b118253b3efe1;p=pandora-kernel.git 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed