Re: [PATCH v2] ll_temac: Reset dma descriptors indexes on ndo_open

From: David Miller
Date: Tue Oct 01 2013 - 12:32:35 EST


From: Ricardo Ribalda Delgado <ricardo.ribalda@xxxxxxxxx>
Date: Tue, 1 Oct 2013 08:17:10 +0200

> The dma descriptors indexes are only initialized on the probe function.
>
> If a packet is on the buffer when temac_stop is called, the dma
> descriptors indexes can be left on a incorrect state where no other
> package can be sent.
>
> So an interface could be left in an usable state after ifdow/ifup.
>
> This patch makes sure that the descriptors indexes are in a proper
> status when the device is open.
>
> Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@xxxxxxxxx>

Applied and queued up for -stable, thanks.
--
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/