summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMax Filippov <jcmvbkbc@gmail.com>2016-02-08 22:02:38 (GMT)
committerChris Zankel <chris@zankel.net>2016-03-11 08:53:31 (GMT)
commit362014c8d9d51d504c167c44ac280169457732be (patch)
tree9ba3fdc258387e5d94355f8230bf5e64d397fc48 /include
parentbb2f3486041aa126cb7ce4929f1e45ede85f0051 (diff)
downloadlinux-362014c8d9d51d504c167c44ac280169457732be.tar.xz
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>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions