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

Luis Henriques luis.henriques at canonical.com
Fri Feb 8 10:09:07 UTC 2013


From: Ian Campbell <ian.campbell at citrix.com>

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

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

CVE-2013-0216

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

diff --git a/drivers/net/xen-netback/netback.c b/drivers/net/xen-netback/netback.c
index 9a5189e..e4e5724 100644
--- a/drivers/net/xen-netback/netback.c
+++ b/drivers/net/xen-netback/netback.c
@@ -851,7 +851,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);
-- 
1.7.9.5




More information about the kernel-team mailing list