From: Tilman Schmidt Date: Tue, 6 Oct 2009 12:18:10 +0000 (+0000) Subject: isdn: avoid races in capidrv X-Git-Tag: v2.6.32-rc4~35^2~21 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e48470217d1822e3566b657002c6f79bd7a77345;p=pandora-kernel.git isdn: avoid races in capidrv In several places, capidrv sends a CAPI message to the ISDN device and then updates its internal state accordingly. If the response message from the device arrives before the state is updated, it may be rejected or processed incorrectly. Avoid these races by updating the state before emitting the message. Impact: bugfix Signed-off-by: Tilman Schmidt Acked-by: Karsten Keil Signed-off-by: David S. Miller --- Reading git-diff-tree failed