From: Johan Hovold Date: Wed, 4 Aug 2010 13:45:57 +0000 (+0200) Subject: USB: serial: fix stalled writes X-Git-Tag: v2.6.36-rc1~293^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b58af4066d240b18b43f202e07b9ec7461d90b17;p=pandora-kernel.git USB: serial: fix stalled writes As David VomLehn points out, it was possible to receive an interrupt before clearing the free-urb flag which could lead to the urb being incorrectly marked as busy. For the same reason, move tx_bytes accounting so that it will never be negative. Note that the free-flags set and clear operations do not need any additional locking as they are manipulated while USB_SERIAL_WRITE_BUSY is set. Reported-by: David VomLehn Tested-by: David VomLehn Signed-off-by: Johan Hovold Cc: stable Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed