From: Allan Stephens Date: Tue, 17 Aug 2010 11:00:07 +0000 (+0000) Subject: tipc: Check for disabled bearer when processing incoming messages X-Git-Tag: v2.6.37-rc1~147^2~808 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b02b69c8a403859ec72090742727e853d606a325;p=pandora-kernel.git tipc: Check for disabled bearer when processing incoming messages Add a check to tipc_recv_msg() to ensure it discards messages arriving on a newly disabled bearer. This is needed to deal with a race condition that can arise if the bearer is in the midst of being disabled when it receives a message. Performing the check after tipc_net_lock has been taken ensures that TIPC's bearers are in a stable state while the message is being processed. Signed-off-by: Allan Stephens Signed-off-by: Paul Gortmaker Signed-off-by: David S. Miller --- Reading git-diff-tree failed