Skip to content

Commit 023160b

Browse files
ying-xuedavem330
authored andcommitted
tipc: avoid double lock 'spin_lock:&seq->lock'
The commit fb9962f ("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: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Ying Xue <ying.xue@windriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent fb3b596 commit 023160b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/tipc/name_table.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -979,7 +979,7 @@ static void tipc_purge_publications(struct name_seq *seq)
979979
}
980980
hlist_del_init_rcu(&seq->ns_list);
981981
kfree(seq->sseqs);
982-
spin_lock_bh(&seq->lock);
982+
spin_unlock_bh(&seq->lock);
983983

984984
kfree_rcu(seq, rcu);
985985
}

0 commit comments

Comments
 (0)