From: David Vrabel Date: Wed, 4 Mar 2015 11:14:47 +0000 (+0000) Subject: xen-netback: unref frags when handling a from-guest skb with a frag list X-Git-Tag: omap-for-v4.1/wl12xx-dt~34^2~15^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=49d9991a18f9aae7b14abbd9c1cc87555330a769;p=pandora-kernel.git xen-netback: unref frags when handling a from-guest skb with a frag list Every time a VIF is destroyed up to 256 pages may be leaked if packets with more than MAX_SKB_FRAGS frags were transmitted from the guest. Even worse, if another user of ballooned pages allocated one of these ballooned pages it would not handle the unexpectedly >1 page count (e.g., gntdev would deadlock when unmapping a grant because the page count would never reach 1). When handling a from-guest skb with a frag list, unref the frags before releasing them so they are freed correctly when the VIF is destroyed. Signed-off-by: David Vrabel Signed-off-by: David S. Miller --- Reading git-diff-tree failed