commit | 362014c8d9d51d504c167c44ac280169457732be | [log] [tgz] |
---|---|---|
author | Max Filippov <jcmvbkbc@gmail.com> | Tue Feb 09 01:02:38 2016 +0300 |
committer | Chris Zankel <chris@zankel.net> | Fri Mar 11 08:53:31 2016 +0000 |
tree | 9ba3fdc258387e5d94355f8230bf5e64d397fc48 | |
parent | bb2f3486041aa126cb7ce4929f1e45ede85f0051 [diff] |
xtensa: ISS: don't hang if stdin EOF is reached Simulator stdin may be connected to a file, when its end is reached kernel hangs in infinite loop inside rs_poll, because simc_poll always signals that descriptor 0 is readable and simc_read always returns 0. Check simc_read return value and exit loop if it's not positive. Also don't rewind polling timer if it's zero. Cc: stable@vger.kernel.org Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>