]> git.baikalelectronics.ru Git - kernel.git/commit
[IrDA]: Fix Rx/Tx path race.
authorG. Liakhovetski <gl@dsa-ac.de>
Sat, 9 Jun 2007 02:15:17 +0000 (19:15 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 9 Jun 2007 02:15:17 +0000 (19:15 -0700)
commit67ff3e89ec986fba4b0a689db8a063716318df4d
treee3f6e22de451d8d679235f8adea313a25c5de497
parent2ec6f2bf3921fabd41c5df2422910d1089406101
[IrDA]: Fix Rx/Tx path race.

From: G. Liakhovetski <gl@dsa-ac.de>

We need to switch to NRM _before_ sending the final packet otherwise
we might hit a race condition where we get the first packet from the
peer while we're still in LAP_XMIT_P.

Signed-off-by: Samuel Ortiz <samuel@sortiz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/irda/irlap.h
net/irda/irlap_event.c
net/irda/irlap_frame.c