net: fec: TX Buffer incorrectly initialized
authorJim Baxter <jim_baxter@mentor.com>
Tue, 26 Mar 2013 05:25:07 +0000 (05:25 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 Mar 2013 16:55:14 +0000 (12:55 -0400)
The TX Buffer in fec_enet_alloc_buffers was being initialized
with the receive register define BD_ENET_RX_INT instead of
the transmit register define BD_ENET_TX_INT

Signed-off-by: Jim Baxter <jim_baxter@mentor.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fec_main.c

index 3eb608f5d0c726814e4ce5ee8e4332bb27dc56a3..2b78a1ebe9034afc7aabc03eef8ed20f60c30eda 100644 (file)
@@ -1391,7 +1391,7 @@ static int fec_enet_alloc_buffers(struct net_device *ndev)
 
                if (fep->bufdesc_ex) {
                        struct bufdesc_ex *ebdp = (struct bufdesc_ex *)bdp;
-                       ebdp->cbd_esc = BD_ENET_RX_INT;
+                       ebdp->cbd_esc = BD_ENET_TX_INT;
                }
 
                bdp = fec_enet_get_nextdesc(bdp, fep->bufdesc_ex);