diff options
| author | Vladimir Murzin <[email protected]> | 2014-11-27 10:39:04 +0000 |
|---|---|---|
| committer | Russell King <[email protected]> | 2014-11-27 15:55:35 +0000 |
| commit | 3f4aa45ceea5789a4aade536acc27f2e0d3da5e1 (patch) | |
| tree | dba92986639331c3ded36813c241fe9099180660 /drivers/tty/serial/sccnxp.c | |
| parent | ARM: 8222/1: mvebu: enable strex backoff delay (diff) | |
| download | kernel-3f4aa45ceea5789a4aade536acc27f2e0d3da5e1.tar.gz kernel-3f4aa45ceea5789a4aade536acc27f2e0d3da5e1.zip | |
ARM: 8226/1: cacheflush: get rid of restarting block
We cannot restart cacheflush safely if a process provides user-defined
signal handler and signal is pending. In this case -EINTR is returned
and it is expected that process re-invokes syscall. However, there are
a few problems with that:
* looks like nobody bothers checking return value from cacheflush
* but if it did, we don't provide the restart address for that, so the
process has to use the same range again
* ...and again, what might lead to looping forever
So, remove cacheflush restarting code and terminate cache flushing
as early as fatal signal is pending.
Cc: [email protected] # 3.12+
Reported-by: Chanho Min <[email protected]>
Signed-off-by: Vladimir Murzin <[email protected]>
Acked-by: Will Deacon <[email protected]>
Signed-off-by: Russell King <[email protected]>
Diffstat (limited to 'drivers/tty/serial/sccnxp.c')
0 files changed, 0 insertions, 0 deletions
