aboutsummaryrefslogtreecommitdiffstats
path: root/net/batman-adv/soft-interface.c
diff options
context:
space:
mode:
authorMarek Lindner <lindner_marek@yahoo.de>2011-02-18 12:28:08 +0000
committerMarek Lindner <lindner_marek@yahoo.de>2011-03-05 12:50:14 +0100
commit39901e716275da4e831b40f9e45a1b61d6a776dc (patch)
treea7db25062f0e3df9b7f878adaeda8aadd5644181 /net/batman-adv/soft-interface.c
parent9e0b33c221f1364e4d7562177a918eef8e85317a (diff)
downloadkernel_samsung_aries-39901e716275da4e831b40f9e45a1b61d6a776dc.zip
kernel_samsung_aries-39901e716275da4e831b40f9e45a1b61d6a776dc.tar.gz
kernel_samsung_aries-39901e716275da4e831b40f9e45a1b61d6a776dc.tar.bz2
batman-adv: separate ethernet comparing calls from hash functions
Note: The function compare_ether_addr() provided by the Linux kernel requires aligned memory. Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Diffstat (limited to 'net/batman-adv/soft-interface.c')
-rw-r--r--net/batman-adv/soft-interface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/batman-adv/soft-interface.c b/net/batman-adv/soft-interface.c
index c30ccd6..bea2dcf 100644
--- a/net/batman-adv/soft-interface.c
+++ b/net/batman-adv/soft-interface.c
@@ -132,7 +132,7 @@ static struct softif_neigh *softif_neigh_get(struct bat_priv *bat_priv,
rcu_read_lock();
hlist_for_each_entry_rcu(softif_neigh, node,
&bat_priv->softif_neigh_list, list) {
- if (memcmp(softif_neigh->addr, addr, ETH_ALEN) != 0)
+ if (!compare_eth(softif_neigh->addr, addr))
continue;
if (softif_neigh->vid != vid)