From: Lubomir Rintel Date: Tue, 18 Jun 2013 17:32:38 +0000 (+0200) Subject: mv643xx_eth: Allocate receive queue initialized to zero X-Git-Tag: v3.10~13^2~24 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9fa8e980bb0a56e46ddd97731f83f608c39aa7a5;p=pandora-kernel.git mv643xx_eth: Allocate receive queue initialized to zero 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: netdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: David S. Miller --- Reading git-diff-tree failed