Patchwork [Precise,CVE,2/2] UBUNTU: SAUCE: netback: correct netbk_tx_err to handle wrap around.

login
register
mail settings
Submitter Luis Henriques
Date Feb. 8, 2013, 10:09 a.m.
Message ID <1360318149-9448-5-git-send-email-luis.henriques@canonical.com>
Download mbox | patch
Permalink /patch/219089/
State New
Headers show

Comments

Luis Henriques - Feb. 8, 2013, 10:09 a.m.
From: Ian Campbell <ian.campbell@citrix.com>

BugLink: http://bugs.launchpad.net/bugs/1117325

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Jan Beulich <JBeulich@suse.com>

CVE-2013-0216

Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Luis Henriques <luis.henriques@canonical.com>
---
 drivers/net/xen-netback/netback.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/drivers/net/xen-netback/netback.c b/drivers/net/xen-netback/netback.c
index 54f23a3..fc85103 100644
--- a/drivers/net/xen-netback/netback.c
+++ b/drivers/net/xen-netback/netback.c
@@ -852,7 +852,7 @@  static void netbk_tx_err(struct xenvif *vif,
 
 	do {
 		make_tx_response(vif, txp, XEN_NETIF_RSP_ERROR);
-		if (cons >= end)
+		if (cons == end)
 			break;
 		txp = RING_GET_REQUEST(&vif->tx, cons++);
 	} while (1);