This fixes a latent bug if there will ever be a second kind of extra
defined.
Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>
Index: head-2007-02-27/drivers/xen/netfront/netfront.c
===================================================================
--- head-2007-02-27.orig/drivers/xen/netfront/netfront.c 2007-02-27
16:31:12.000000000 +0100
+++ head-2007-02-27/drivers/xen/netfront/netfront.c 2007-03-07
13:14:12.000000000 +0100
@@ -1317,7 +1317,7 @@ static int netif_poll(struct net_device
work_done = 0;
while ((i != rp) && (work_done < budget)) {
memcpy(rx, RING_GET_RESPONSE(&np->rx, i), sizeof(*rx));
- memset(extras, 0, sizeof(extras));
+ memset(extras, 0, sizeof(rinfo.extras));
err = xennet_get_responses(np, &rinfo, rp, &tmpq,
&pages_flipped);
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|