]> git.baikalelectronics.ru Git - kernel.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)
commit0fa192e1b1ba2101701c316a41d14578c92aace1
tree343f6de6312d5fa186b808a800bff404a2047367
parent7e865ba229cd5ebf07c82c6fc5798e2b5c4fa445
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