Will Deacon c5102f5935 ARM: 7408/1: cacheflush: return error to userspace when flushing syscall fails
The cacheflush syscall can fail for two reasons:

(1) The arguments are invalid (nonsensical address range or no VMA)

(2) The region generates a translation fault on a VIPT or PIPT cache

This patch allows do_cache_op to return an error code to userspace in
the case of the above. The various coherent_user_range implementations
are modified to return 0 in the case of VIVT caches or -EFAULT in the
case of an abort on v6/v7 cores.

Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2012-05-02 11:12:49 +01:00
..
2009-02-01 11:01:22 +05:30
2012-03-29 18:02:10 -07:00
2012-03-28 18:30:01 +01:00
2012-04-03 10:59:10 -07:00
2012-03-28 18:30:01 +01:00
2012-03-28 18:30:01 +01:00
2012-03-28 18:30:01 +01:00
2012-03-28 18:30:01 +01:00
2012-03-28 18:30:01 +01:00
2012-03-28 18:30:01 +01:00
2012-03-28 18:30:01 +01:00
2012-03-28 18:30:01 +01:00
2009-03-15 21:01:20 -04:00
2009-05-29 08:40:02 -07:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-16 23:35:26 +00:00
2011-03-31 11:26:23 -03:00
2012-03-20 21:48:30 +08:00
2012-04-05 11:29:55 -07:00
2010-10-07 14:08:55 +01:00
2010-10-29 13:14:40 -05:00
2012-03-28 18:30:01 +01:00
2012-02-23 20:19:04 -07:00
2012-02-14 12:01:28 -08:00
2012-03-24 09:38:54 +00:00
2012-04-25 19:49:28 +01:00
2010-10-01 22:32:18 -04:00
2008-09-04 09:46:11 +01:00
2008-11-27 12:37:59 +00:00
2012-03-28 18:30:01 +01:00
2012-03-28 18:30:01 +01:00
2012-01-03 22:55:17 -05:00
2012-03-28 18:30:01 +01:00
2011-03-31 11:26:23 -03:00
2012-01-16 08:56:25 -06:00
2011-07-12 11:19:29 -05:00