android_kernel_samsung_msm8976/arch/xtensa/platforms
Max Filippov fd5924d8b3 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.

Cc: stable@vger.kernel.org
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Willy Tarreau <w@1wt.eu>
2016-06-07 10:42:46 +02:00
..
iss xtensa: ISS: don't hang if stdin EOF is reached 2016-06-07 10:42:46 +02:00
s6105 xtensa: Convert genirq namespace 2011-03-24 20:35:58 +01:00
xt2000 xtensa: fix ibreakenable register update 2013-05-09 01:07:09 -07:00
xtfpga xtensa: xtfpga: fix hardware lockup caused by LCD driver 2015-05-06 21:56:26 +02:00