bonding: use the correct size for _simple_hash()
Subsystems (3)
PATCH 1/1 bonding: use the correct size for _simple_hash()
Clearly it should be the size of ->ip_dst here. Although this is harmless, but it still reads odd.
Signed-off-by WANG Cong <[email protected]>
---
drivers/net/bonding/bond_alb.c +1 -1
@@ -604,7 +604,7 @@ static struct slave *rlb_choose_channel(struct sk_buff *skb, struct bonding *bon_lock_rx_hashtbl (bond); - hash_index =_simple_hash ((u8 *)&arp->ip_dst,sizeof (arp->ip_src)); + hash_index =_simple_hash ((u8 *)&arp->ip_dst,sizeof (arp->ip_dst)); client_info = &(bond_info->rx_hashtbl[hash_index]);if (client_info->assigned) {
From: Amerigo Wang <[email protected]>
Date: Mon, 28 Feb 2011 17:34:28 +0800
Quoted 4 lines
Clearly it should be the size of ->ip_dst here. Although this is harmless, but it still reads odd.
Signed-off-by WANG Cong <[email protected]>
Applied to net-next-2.6, thanks.