]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ps3: fix wrong calculation of rx descriptor address
authorMasakazu Mokuno <mokuno@sm.sony.co.jp>
Fri, 20 Jul 2007 08:20:54 +0000 (17:20 +0900)
committerJeff Garzik <jeff@garzik.org>
Tue, 24 Jul 2007 20:28:39 +0000 (16:28 -0400)
Fixed the bug that calculation of the address of rx descriptor was
wrong.

Signed-off-by: Masakazu Mokuno <mokuno@sm.sony.co.jp>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/ps3_gelic_net.c

index 08d25066f051228cad0807dae76b8fa7ea7a1fa5..676a89df4d70da5a45009325ead974d7d93d8551 100644 (file)
@@ -1107,7 +1107,7 @@ static int gelic_net_open(struct net_device *netdev)
                        card->descr, GELIC_NET_TX_DESCRIPTORS))
                goto alloc_tx_failed;
        if (gelic_net_init_chain(card, &card->rx_chain,
-                                card->descr + GELIC_NET_RX_DESCRIPTORS,
+                                card->descr + GELIC_NET_TX_DESCRIPTORS,
                                 GELIC_NET_RX_DESCRIPTORS))
                goto alloc_rx_failed;