summaryrefslogtreecommitdiffstats
path: root/net/batman-adv/hard-interface.c
diff options
context:
space:
mode:
authorMarek Lindner <lindner_marek@yahoo.de>2012-02-07 17:20:47 +0800
committerAntonio Quartulli <ordex@autistici.org>2012-04-18 09:53:59 +0200
commit00a50076a3afa4014cdd57e87e31a00ce4c4b67e (patch)
tree29a2f36db820eb25b3d4abd56c71d8c2e6cde889 /net/batman-adv/hard-interface.c
parentd7d32ec0f199cc00a43434cdd920338763fab2e0 (diff)
downloadblackbird-op-linux-00a50076a3afa4014cdd57e87e31a00ce4c4b67e.tar.gz
blackbird-op-linux-00a50076a3afa4014cdd57e87e31a00ce4c4b67e.zip
batman-adv: add iface_disable() callback to routing API
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de> Signed-off-by: Antonio Quartulli <ordex@autistici.org>
Diffstat (limited to 'net/batman-adv/hard-interface.c')
-rw-r--r--net/batman-adv/hard-interface.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/batman-adv/hard-interface.c b/net/batman-adv/hard-interface.c
index 4d9b85ddd93a..fd9715ec6dbd 100644
--- a/net/batman-adv/hard-interface.c
+++ b/net/batman-adv/hard-interface.c
@@ -397,8 +397,7 @@ void hardif_disable_interface(struct hard_iface *hard_iface)
hardif_free_ref(new_if);
}
- kfree(hard_iface->packet_buff);
- hard_iface->packet_buff = NULL;
+ bat_priv->bat_algo_ops->bat_iface_disable(hard_iface);
hard_iface->if_status = IF_NOT_IN_USE;
/* delete all references to this hard_iface */
OpenPOWER on IntegriCloud