]> asedeno.scripts.mit.edu Git - linux.git/commit
xen-netback: Fix handling frag_list on grant op error path
authorZoltan Kiss <zoltan.kiss@citrix.com>
Fri, 18 Jul 2014 18:08:02 +0000 (19:08 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 21 Jul 2014 03:56:05 +0000 (20:56 -0700)
commit1a998d3e6bc1e44f4c0bc7509bdedef8ed3845ec
tree343f6de6312d5fa186b808a800bff404a2047367
parent7801db8aec957fa6610efe0ee26a6c8bc0f1d73b
xen-netback: Fix handling frag_list on grant op error path

The error handling for skb's with frag_list was completely wrong, it caused
double unmap attempts to happen if the error was on the first skb. Move it to
the right place in the loop.

Signed-off-by: Zoltan Kiss <zoltan.kiss@citrix.com>
Reported-by: Armin Zentai <armin.zentai@ezit.hu>
Cc: netdev@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Cc: xen-devel@lists.xenproject.org
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/xen-netback/netback.c