Re: [PATCH net] mac80211: mesh: fix missing unlock on error in table_path_del()

2019-02-18 Thread David Miller
From: Johannes Berg Date: Mon, 18 Feb 2019 11:29:29 +0100 > From: Wei Yongjun > > spin_lock_bh() is used in table_path_del() but rcu_read_unlock() > is used for unlocking. Fix it by using spin_unlock_bh() instead > of rcu_read_unlock() in the error handling case. > > Fixes: b4c3fbe63601 ("mac8

[PATCH net] mac80211: mesh: fix missing unlock on error in table_path_del()

2019-02-18 Thread Johannes Berg
From: Wei Yongjun spin_lock_bh() is used in table_path_del() but rcu_read_unlock() is used for unlocking. Fix it by using spin_unlock_bh() instead of rcu_read_unlock() in the error handling case. Fixes: b4c3fbe63601 ("mac80211: Use linked list instead of rhashtable walk for mesh tables") Acked-