Re: [PATCH 1/3] pxa168_eth: Allocate receive queue initialized tozero

From: David Miller
Date: Thu Jun 20 2013 - 01:19:43 EST


From: Lubomir Rintel <lkundrak@xxxxx>
Date: Tue, 18 Jun 2013 19:30:48 +0200

> 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@xxxxx>

Applied.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/