From: Michael S. Tsirkin Date: Wed, 20 Jul 2011 10:41:31 +0000 (+0300) Subject: vhost-net: update used ring on backend change X-Git-Tag: v3.1-rc1~316^2~1^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c047e5f3170c2595e66ed67f87cec01afd717212;p=pandora-kernel.git vhost-net: update used ring on backend change On backend change, we flushed out outstanding skbs but forgot to update the used ring, so that done entries were left in the ubuf_info ring. As a result we lose heads or complete incorrect ones, crashing the guest or leaking memory. Fix by updating the used ring. Signed-off-by: Michael S. Tsirkin --- Reading git-diff-tree failed