Re: [PATCH 4/5] TTY: fix tty_wait_until_sent on 64-bit machines

2015-03-05 Thread Peter Hurley
On 03/04/2015 04:39 AM, Johan Hovold wrote: > Fix overflow bug in tty_wait_until_sent on 64-bit machines, where an > infinite timeout (0) would be passed to the underlying tty-driver's > wait_until_sent-operation as a negative timeout (-1), causing it to > return immediately. Wow, that is a nasty

[PATCH 4/5] TTY: fix tty_wait_until_sent on 64-bit machines

2015-03-04 Thread Johan Hovold
Fix overflow bug in tty_wait_until_sent on 64-bit machines, where an infinite timeout (0) would be passed to the underlying tty-driver's wait_until_sent-operation as a negative timeout (-1), causing it to return immediately. This manifests itself for example as tcdrain() returning immediately, dri