Browse Source

ps3: fix wrong calculation of rx descriptor address

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>
Masakazu Mokuno 18 years ago
parent
commit
9f6c9a8c50
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/net/ps3_gelic_net.c

+ 1 - 1
drivers/net/ps3_gelic_net.c

@@ -1107,7 +1107,7 @@ static int gelic_net_open(struct net_device *netdev)
 			card->descr, GELIC_NET_TX_DESCRIPTORS))
 			card->descr, GELIC_NET_TX_DESCRIPTORS))
 		goto alloc_tx_failed;
 		goto alloc_tx_failed;
 	if (gelic_net_init_chain(card, &card->rx_chain,
 	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))
 				 GELIC_NET_RX_DESCRIPTORS))
 		goto alloc_rx_failed;
 		goto alloc_rx_failed;