Commit c780438d authored by Zoltan Kiss's avatar Zoltan Kiss Committed by Greg Kroah-Hartman

xen-netback: Fix pointer incrementation to avoid incorrect logging

[ Upstream commit d8cfbfc4 ]

Due to this pointer is increased prematurely, the error log contains rubbish.
Signed-off-by: default avatarZoltan Kiss <zoltan.kiss@citrix.com>
Reported-by: default avatarArmin 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: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 4500fc0e
......@@ -1022,7 +1022,6 @@ static int xenvif_tx_check_gop(struct xenvif *vif,
/* Check status of header. */
err = (*gopp_copy)->status;
(*gopp_copy)++;
if (unlikely(err)) {
if (net_ratelimit())
netdev_dbg(vif->dev,
......@@ -1035,6 +1034,7 @@ static int xenvif_tx_check_gop(struct xenvif *vif,
xenvif_idx_release(vif, pending_idx,
XEN_NETIF_RSP_ERROR);
}
(*gopp_copy)++;
check_frags:
for (i = 0; i < nr_frags; i++, gop_map++) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment