Bug 55981

Summary: [PATCH]n_tty: recalc read-exit parameters if icanon changes
Product: Drivers Reporter: Stas Sergeev (stsp2)
Component: SerialAssignee: Russell King (rmk)
Status: NEW ---    
Severity: normal CC: alan
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 3.x Subsystem:
Regression: No Bisected commit-id:
Attachments: the fix

Description Stas Sergeev 2013-03-30 15:06:57 UTC
Created attachment 96681 [details]
the fix

If icanon changes while read() is sleeping, the exit parameters,
such as the timeouts and minimum number of chars to read, should
be re-calculated.
The problem is most prominent when pty master changes termios
between writes, while the reader is waiting for data on slave.