Re: [PATCH] mv643xx_eth: Allocate receive queue initialized to zero

2013-06-19 Thread David Miller
From: Lubomir Rintel Date: Tue, 18 Jun 2013 19:32:38 +0200 > Zero pointer in rx_skb is how respective rxq_deinit() finds out out that a skb > slot is unallocated. If rxq_refill() fails (e.g. on OOM condition), subsequent > teardown would result in an attempt to kfree() invalid pointers. > > Sign

[PATCH] mv643xx_eth: Allocate receive queue initialized to zero

2013-06-18 Thread Lubomir Rintel
Zero pointer in rx_skb is how respective rxq_deinit() finds out out that a skb slot is unallocated. If rxq_refill() fails (e.g. on OOM condition), subsequent teardown would result in an attempt to kfree() invalid pointers. Signed-off-by: Lubomir Rintel Cc: Lennert Buytenhek Cc: net...@vger.kerne