android_kernel_oneplus_msm8998/arch/xtensa/platforms
Max Filippov f2e1e0a0af xtensa: ISS: don't hang if stdin EOF is reached
commit 362014c8d9d51d504c167c44ac280169457732be upstream.

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.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-04-12 09:08:55 -07:00
..
iss xtensa: ISS: don't hang if stdin EOF is reached 2016-04-12 09:08:55 -07:00
xt2000 xtensa: fixes for configs without loop option 2015-11-02 18:02:47 +03:00
xtfpga xtensa: xtfpga: fix integer overflow in TASK_SIZE 2015-11-02 18:02:55 +03:00