From: Eric W. Biederman Date: Thu, 20 Oct 2011 04:26:39 +0000 (+0000) Subject: macvtap: Fix macvtap_open races in the zero copy enable code. X-Git-Tag: v3.2-rc1~182^2~25 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=047af9cfedfa357e1497e327eaa893253ca51971;p=pandora-kernel.git macvtap: Fix macvtap_open races in the zero copy enable code. To see if it is appropriate to enable the macvtap zero copy feature don't test the lowerdev network device flags. Instead test the macvtap network device flags which are a direct copy of the lowerdev flags. This is important because nothing holds a reference to lowerdev and on a very bad day we lowerdev could be a pointer to stale memory. Signed-off-by: Eric W. Biederman Signed-off-by: David S. Miller --- Reading git-diff-tree failed