summaryrefslogtreecommitdiffstats
path: root/net/mac80211/cfg.c
diff options
context:
space:
mode:
authorJavier Cardona2011-08-29 22:23:04 +0200
committerJohn W. Linville2011-09-13 21:42:32 +0200
commitece1a2e7e86078c8379937b546e32cb7f25fcb6c (patch)
treef15c838069746175237e3639f85e800d712f88b9 /net/mac80211/cfg.c
parentmac80211: Fix RCU pointer dereference in mesh_path_discard_frame() (diff)
downloadkernel-qcow2-linux-ece1a2e7e86078c8379937b546e32cb7f25fcb6c.tar.gz
kernel-qcow2-linux-ece1a2e7e86078c8379937b546e32cb7f25fcb6c.tar.xz
kernel-qcow2-linux-ece1a2e7e86078c8379937b546e32cb7f25fcb6c.zip
mac80211: Remove mesh paths when an interface is removed
When an interface is removed, the mesh paths associated with it should also be removed. This fixes a bug we observed when reloading a device driver module without reloading mac80211s. Signed-off-by: Javier Cardona <javier@cozybit.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/cfg.c')
-rw-r--r--net/mac80211/cfg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c
index 0baaaecf4558..5c0d8fab0e88 100644
--- a/net/mac80211/cfg.c
+++ b/net/mac80211/cfg.c
@@ -921,7 +921,7 @@ static int ieee80211_del_mpath(struct wiphy *wiphy, struct net_device *dev,
if (dst)
return mesh_path_del(dst, sdata);
- mesh_path_flush(sdata);
+ mesh_path_flush_by_iface(sdata);
return 0;
}