Commit 023160bc8f100ad949ebaee0d3a1b7398d938171

Authored by Ying Xue
Committed by David S. Miller
1 parent fb3b596d3c

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

The commit fb9962f3cefe ("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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

net/tipc/name_table.c
... ... @@ -979,7 +979,7 @@
979 979 }
980 980 hlist_del_init_rcu(&seq->ns_list);
981 981 kfree(seq->sseqs);
982   - spin_lock_bh(&seq->lock);
  982 + spin_unlock_bh(&seq->lock);
983 983  
984 984 kfree_rcu(seq, rcu);
985 985 }