netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] fix atl1 braino
@ 2007-02-13  7:12 Al Viro
  2007-02-13 17:21 ` Chris Snook
  2007-02-13 17:36 ` Chuck Ebbert
  0 siblings, 2 replies; 3+ messages in thread
From: Al Viro @ 2007-02-13  7:12 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: netdev, linux-kernel, Jeff Garzik

Spot the bug...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
---

diff --git a/drivers/net/atl1/atl1_hw.c b/drivers/net/atl1/atl1_hw.c
index 08b2d78..e28707a 100644
--- a/drivers/net/atl1/atl1_hw.c
+++ b/drivers/net/atl1/atl1_hw.c
@@ -357,7 +357,7 @@ void atl1_hash_set(struct atl1_hw *hw, u32 hash_value)
 	 */
 	hash_reg = (hash_value >> 31) & 0x1;
 	hash_bit = (hash_value >> 26) & 0x1F;
-	mta = ioread32((hw + REG_RX_HASH_TABLE) + (hash_reg << 2));
+	mta = ioread32((hw->hw_addr + REG_RX_HASH_TABLE) + (hash_reg << 2));
 	mta |= (1 << hash_bit);
 	iowrite32(mta, (hw->hw_addr + REG_RX_HASH_TABLE) + (hash_reg << 2));
 }

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-02-13 17:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-13  7:12 [PATCH] fix atl1 braino Al Viro
2007-02-13 17:21 ` Chris Snook
2007-02-13 17:36 ` Chuck Ebbert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).