]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - net/mac80211/mesh_hwmp.c
Merge tag 'mvebu-dt-4.8-1' of git://git.infradead.org/linux-mvebu into next/dt
[karo-tx-linux.git] / net / mac80211 / mesh_hwmp.c
index 002244bca948520f9e3d722dc908c62aa3eb4fb1..8f9c3bde835f4a3a8f1c777c0b2af0fea81acf2d 100644 (file)
@@ -1012,6 +1012,10 @@ void mesh_path_start_discovery(struct ieee80211_sub_if_data *sdata)
                goto enddiscovery;
 
        spin_lock_bh(&mpath->state_lock);
+       if (mpath->flags & MESH_PATH_DELETED) {
+               spin_unlock_bh(&mpath->state_lock);
+               goto enddiscovery;
+       }
        mpath->flags &= ~MESH_PATH_REQ_QUEUED;
        if (preq_node->flags & PREQ_Q_F_START) {
                if (mpath->flags & MESH_PATH_RESOLVING) {