Commit 023160bc authored by Ying Xue's avatar Ying Xue Committed by David S. Miller

tipc: avoid double lock 'spin_lock:&seq->lock'

The commit fb9962f3 ("tipc: ensure all name sequences are properly
protected with its lock") involves below errors:

net/tipc/name_table.c:980 tipc_purge_publications() error: double lock 'spin_lock:&seq->lock'
Reported-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarYing Xue <ying.xue@windriver.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent fb3b596d
...@@ -979,7 +979,7 @@ static void tipc_purge_publications(struct name_seq *seq) ...@@ -979,7 +979,7 @@ static void tipc_purge_publications(struct name_seq *seq)
} }
hlist_del_init_rcu(&seq->ns_list); hlist_del_init_rcu(&seq->ns_list);
kfree(seq->sseqs); kfree(seq->sseqs);
spin_lock_bh(&seq->lock); spin_unlock_bh(&seq->lock);
kfree_rcu(seq, rcu); kfree_rcu(seq, rcu);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment