diff options
author | 2015-12-10 21:59:04 +0530 | |
---|---|---|
committer | 2015-12-12 22:57:44 +0000 | |
commit | 7f3ac71ac3b05aaa2c55c266448f973188275a8c (patch) | |
tree | 549f08faf5ff10d4e237009c37c3ae6027495aea /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | Linux 4.4-rc1 (diff) | |
download | linux-rng-7f3ac71ac3b05aaa2c55c266448f973188275a8c.tar.xz linux-rng-7f3ac71ac3b05aaa2c55c266448f973188275a8c.zip |
spi: davinci: fix spurious i/o error
davinci_spi_bufs() uses wait_for_completion_interruptible()
without bothering to handle -ERESTARTSYS. Due to this,
sometime, it returns prematurely when a signal is received.
Since the return value is never checked, userspace eventually
receives a spurious -EIO.
To fix this, use un-interruptible wait_for_completion_timeout().
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions