Re: [PATCH] net: calxedaxgmac: throw away overrun frames

From: David Miller
Date: Fri Jan 18 2013 - 14:14:55 EST


From: Rob Herring <robherring2@xxxxxxxxx>
Date: Wed, 16 Jan 2013 17:36:37 -0600

> From: Rob Herring <rob.herring@xxxxxxxxxxx>
>
> The xgmac driver assumes 1 frame per descriptor. If a frame larger than
> the descriptor's buffer size is received, the frame will spill over into
> the next descriptor. So check for received frames that span more than one
> descriptor and discard them. This prevents a crash if we receive erroneous
> large packets.
>
> Signed-off-by: Rob Herring <rob.herring@xxxxxxxxxxx>

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/