android_kernel_samsung_msm8976/arch/xtensa/platforms/iss
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
..
include/platform xtensa: don't use a7 in simcalls 2013-05-09 01:07:10 -07:00
Makefile xtensa: ISS: add host file-based simulated disk 2013-02-23 19:22:41 -08:00
console.c xtensa: ISS: don't hang if stdin EOF is reached 2016-06-07 10:42:46 +02:00
network.c xtensa: ISS: fix __simc implementation 2012-10-03 15:11:25 -07:00
setup.c xtensa: provide default platform_pcibios_init implementation 2013-05-09 01:07:09 -07:00
simdisk.c Xtensa patchset for v3.10-rc1 2013-05-09 14:38:16 -07:00