From: Michael S. Tsirkin Date: Sun, 23 Jun 2013 14:19:03 +0000 (+0300) Subject: tun: fix recovery from gup errors X-Git-Tag: v3.10~13^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e24bfbe43b545b1689a5f134ed83645b9e34b86;p=pandora-kernel.git tun: fix recovery from gup errors get user pages might fail partially in tun 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 Acked-by: Neil Horman Signed-off-by: David S. Miller --- Reading git-diff-tree failed