From: Lubomir Rintel Date: Tue, 18 Jun 2013 17:30:48 +0000 (+0200) Subject: pxa168_eth: Allocate receive queue initialized to zero X-Git-Tag: v3.10~13^2~25 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=451bff2932a69e904f41a180145de1d2358bb8f5;p=pandora-kernel.git pxa168_eth: Allocate receive queue initialized to zero Zero pointer in rx_skb or tx_skb is how respective *_deinit() functions find out that a skb slot is unallocated. If *_init() functions unsuccessfully return after the allocation (e.g. when subsequent dma_alloc_coherent() is not successful), this would result in attempt to kfree() invalid pointers. Signed-off-by: Lubomir Rintel Cc: Kosta Zertsekel Cc: netdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: David S. Miller --- Reading git-diff-tree failed