tipc: fix broadcast wakeup contention after congestion
authorRichard Alpe <richard.alpe@ericsson.com>
Wed, 10 Dec 2014 08:46:54 +0000 (09:46 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 10 Dec 2014 19:45:33 +0000 (14:45 -0500)
commit340b6e59fbc6ac97469253315c96e952908c9c0d
treed88c379f281f793b0b4f333a8fde018466bc1a6a
parent4f675eb2a736dfb65d68a00ff38e9342252eeabc
tipc: fix broadcast wakeup contention after congestion

commit 908344cdda80 ("tipc: fix bug in multicast congestion handling")
introduced a race in the broadcast link wakeup functionality.

This patch eliminates this broadcast link wakeup race caused by
operation on the wakeup list without proper locking. If this race
hit and corrupted the list all subsequent wakeup messages would be
lost, resulting in a considerable memory leak.

Signed-off-by: Richard Alpe <richard.alpe@ericsson.com>
Signed-off-by: Erik Hugne <erik.hugne@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/link.c
net/tipc/node.c