tipc: fix missing spinlock init and nullptr oops
authorErik Hugne <erik.hugne@ericsson.com>
Wed, 3 Dec 2014 15:58:40 +0000 (16:58 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 9 Dec 2014 18:41:54 +0000 (13:41 -0500)
commit 908344cdda80 ("tipc: fix bug in multicast congestion
handling") introduced two bugs with the bclink wakeup
function. This commit fixes the missing spinlock init for the
waiting_sks list. We also eliminate the race condition
between the waiting_sks length check/dequeue operations in
tipc_bclink_wakeup_users by simply removing the redundant
length check.

Signed-off-by: Erik Hugne <erik.hugne@ericsson.com>
Acked-by: Tero Aho <Tero.Aho@coriant.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/bcast.c

Simple merge