Skip to content

Commit

Permalink
bonding: use the correct size for _simple_hash()
Browse files Browse the repository at this point in the history
Clearly it should be the size of ->ip_dst here.
Although this is harmless, but it still reads odd.

Signed-off-by: WANG Cong <amwang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Amerigo Wang authored and David S. Miller committed Feb 28, 2011
1 parent 8da83f8 commit e364a34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/bonding/bond_alb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit e364a34

Please sign in to comment.