]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/net/via-velocity.c
via-velocity: fix memory corruption when changing the mtu
[linux-2.6-omap-h63xx.git] / drivers / net / via-velocity.c
index c2d5907dc8e054edd6ecab18bdc954cfbfd1554b..ed1f837c8fda2274a3874855550f1d39e81f1bcd 100644 (file)
@@ -1106,6 +1106,9 @@ static void velocity_free_rd_ring(struct velocity_info *vptr)
 
        for (i = 0; i < vptr->options.numrx; i++) {
                struct velocity_rd_info *rd_info = &(vptr->rd_info[i]);
+               struct rx_desc *rd = vptr->rd_ring + i;
+
+               memset(rd, 0, sizeof(*rd));
 
                if (!rd_info->skb)
                        continue;