summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/marvell/mv643xx_eth.c
diff options
context:
space:
mode:
authorLubomir Rintel2013-06-18 19:30:48 +0200
committerDavid S. Miller2013-06-20 07:18:52 +0200
commit451bff2932a69e904f41a180145de1d2358bb8f5 (patch)
tree138b61ddd6a8624224017c0e313436f7aa48dd2f /drivers/net/ethernet/marvell/mv643xx_eth.c
parentsfc: Remove write permission from phy_type attribute (diff)
downloadkernel-qcow2-linux-451bff2932a69e904f41a180145de1d2358bb8f5.tar.gz
kernel-qcow2-linux-451bff2932a69e904f41a180145de1d2358bb8f5.tar.xz
kernel-qcow2-linux-451bff2932a69e904f41a180145de1d2358bb8f5.zip
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 <lkundrak@v3.sk> Cc: Kosta Zertsekel <konszert@marvell.com> Cc: netdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/marvell/mv643xx_eth.c')
0 files changed, 0 insertions, 0 deletions