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

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


From: Lubomir Rintel <lkundrak@xxxxx>
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.
>
> 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/