From: Michael S. Tsirkin Date: Thu, 28 Nov 2013 11:30:55 +0000 (+0200) Subject: virtio_net: fix error handling for mergeable buffers X-Git-Tag: v3.13-rc3~28^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8fc3b9e9a229778e5af3aa453c44f1a3857ba769;p=pandora-kernel.git virtio_net: fix error handling for mergeable buffers Eric Dumazet noticed that if we encounter an error when processing a mergeable buffer, we don't dequeue all of the buffers from this packet, the result is almost sure to be loss of networking. Jason Wang noticed that we also leak a page and that we don't decrement the rq buf count, so we won't repost buffers (a resource leak). Fix both issues. Cc: Rusty Russell Cc: Michael Dalton Reported-by: Eric Dumazet Reported-by: Jason Wang Signed-off-by: Michael S. Tsirkin Acked-by: Jason Wang Signed-off-by: David S. Miller --- Reading git-diff-tree failed