From: Michael S. Tsirkin Date: Sun, 23 Jun 2013 14:26:58 +0000 (+0300) Subject: macvtap: fix recovery from gup errors X-Git-Tag: v3.2.50~80 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=34a3c5bb43d7acc16d9a6d65d4b7d963060c5ca8;p=pandora-kernel.git macvtap: fix recovery from gup errors [ Upstream commit 4c7ab054ab4f5d63625508ed6f8a607184cae7c2 ] get user pages might fail partially in macvtap zero copy mode. To recover we need to put all pages that we got, but code used a wrong index resulting in double-free errors. Reported-by: Brad Hubbard Signed-off-by: Michael S. Tsirkin Acked-by: Jason Wang Signed-off-by: David S. Miller Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed