]> err.no Git - linux-2.6/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)
commitc0cfe7faa12f189ef1024fce5a710791d0062355
treee3f6e22de451d8d679235f8adea313a25c5de497
parent81d84a94be8085475c3585596e52b06ccbedd922
[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