fec: fix uninitialized rx buffer usage
The fec driver was enabling receive buffer descriptor without allocating the buffers. Make sure the buffer descriptors are initialized to not start receiving packets. Open also calls fec_restart after the rx buffers are allocated. With the code in fec_restart, it zeroes out the buffer descriptors that have just been setup. Signed-off-by: NRob Herring <r.herring@freescale.com> Signed-off-by: NAmit Kucheria <amit.kucheria@canonical.com> Acked-by: NGrant Likely <grant.likely@secretlab.ca> Acked-by: NGreg Ungerer <gerg@uclinux.org> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
Showing
想要评论请 注册 或 登录