Re: [PATCH net 3/4] xen-netback: Fix releasing header slot on error path

2014-07-18 Thread Zoltan Kiss
On 18/07/14 16:25, Wei Liu wrote: On Thu, Jul 17, 2014 at 08:09:51PM +0100, Zoltan Kiss wrote: This patch makes this function aware that the first frag and the header might share the same ring slot. That could happen if the first slot is bigger than MAX_SKB_LEN. Due to this the error path might

Re: [PATCH net 3/4] xen-netback: Fix releasing header slot on error path

2014-07-18 Thread Wei Liu
On Thu, Jul 17, 2014 at 08:09:51PM +0100, Zoltan Kiss wrote: > This patch makes this function aware that the first frag and the header might > share the same ring slot. That could happen if the first slot is bigger than > MAX_SKB_LEN. Due to this the error path might release that slot twice or > n

[PATCH net 3/4] xen-netback: Fix releasing header slot on error path

2014-07-17 Thread Zoltan Kiss
This patch makes this function aware that the first frag and the header might share the same ring slot. That could happen if the first slot is bigger than MAX_SKB_LEN. Due to this the error path might release that slot twice or never, depending on the error scenario. xenvif_idx_release is also remo