netfront: adjust clearing of extras space
PATCH 1/1 netfront: adjust clearing of extras space
This fixes a latent bug if there will ever be a second kind of extra defined.
Signed-off-by Jan Beulich <[email protected]>
drivers/xen/netfront/netfront.c +1 -1
@@ -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);
Quoted 4 lines · Jan Beulich
This fixes a latent bug if there will ever be a second kind of extra defined.
Signed-off-by Jan Beulich <[email protected]>
Thanks for catching this!
This was a typo and it only ever worked by accident.
Cheers,
Signature · 4 lines
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt