Corcodel Marian <corcodel.mar...@gmail.com> : [...] > diff --git a/drivers/net/ethernet/realtek/r8169.c > b/drivers/net/ethernet/realtek/r8169.c > index 3df51fa..fd249a6 100644 > --- a/drivers/net/ethernet/realtek/r8169.c > +++ b/drivers/net/ethernet/realtek/r8169.c > @@ -6724,8 +6724,8 @@ static int rtl8169_init_ring(struct net_device *dev) > > rtl8169_init_ring_indexes(tp); > > - memset(tp->tx_skb, 0x0, NUM_TX_DESC * sizeof(struct ring_info)); > - memset(tp->Rx_databuff, 0x0, NUM_RX_DESC * sizeof(void *)); > + memset(tp->tx_skb, 0x0, NUM_RX_DESC); > + memset(tp->Rx_databuff, 0x0, NUM_RX_DESC);
void *Rx_databuff[NUM_RX_DESC]; :o( Please don't mess with the kernel code until you've figured how wrong these changes are. Then give yourself a few months and read more code. Really. -- Ueimor -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html