mirror of
https://github.com/torvalds/linux
synced 2024-10-03 01:43:05 +00:00
xen/netback: fix build warning
Commitad7f402ae4
("xen/netback: Ensure protocol headers don't fall in the non-linear area") introduced a (valid) build warning. There have even been reports of this problem breaking networking of Xen guests. Fixes:ad7f402ae4
("xen/netback: Ensure protocol headers don't fall in the non-linear area") Signed-off-by: Juergen Gross <jgross@suse.com> Reviewed-by: Jan Beulich <jbeulich@suse.com> Reviewed-by: Ross Lagerwall <ross.lagerwall@citrix.com> Tested-by: Jason Andryuk <jandryuk@gmail.com> Signed-off-by: Juergen Gross <jgross@suse.com>
This commit is contained in:
parent
74e7e1efda
commit
7dfa764e02
|
@ -530,7 +530,7 @@ static int xenvif_tx_check_gop(struct xenvif_queue *queue,
|
|||
const bool sharedslot = nr_frags &&
|
||||
frag_get_pending_idx(&shinfo->frags[0]) ==
|
||||
copy_pending_idx(skb, copy_count(skb) - 1);
|
||||
int i, err;
|
||||
int i, err = 0;
|
||||
|
||||
for (i = 0; i < copy_count(skb); i++) {
|
||||
int newerr;
|
||||
|
|
Loading…
Reference in a new issue