]> git.baikalelectronics.ru Git - kernel.git/commit
isdn: avoid races in capidrv
authorTilman Schmidt <tilman@imap.cc>
Tue, 6 Oct 2009 12:18:10 +0000 (12:18 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Oct 2009 05:20:53 +0000 (22:20 -0700)
commit2a6eb1b4b8973a5557b287a2dae47de780730652
tree200e267a4149e63806afda52809590a7bacf34b7
parent1de51056c263fdaac8a0ffbdf0335b404a41d4f0
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 <tilman@imap.cc>
Acked-by: Karsten Keil <keil@b1-systems.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/isdn/capi/capidrv.c