diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2018-06-08 10:11:50 +1000 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2018-06-08 13:57:08 +1000 |
commit | 553cf559838afc9c5b7323e50b7425e37434e95c (patch) | |
tree | e92f542af174d6ec91f864a31144d1b90af4f57f /kernel | |
parent | 9badfc0a3f3c5a02b3854fa82a9463978817a93c (diff) |
kcov-prefault-the-kcov_area-fix
code cleanup
Cc: Andrey Ryabinin <aryabinin@virtuozzo.com>
Cc: Dmitry Vyukov <dvyukov@google.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/kcov.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/kcov.c b/kernel/kcov.c index 3b82f8e258da..053d2c81fb82 100644 --- a/kernel/kcov.c +++ b/kernel/kcov.c @@ -330,9 +330,8 @@ static void kcov_fault_in_area(struct kcov *kcov) unsigned long *area = kcov->area; unsigned long offset; - for (offset = 0; offset < kcov->size; offset += stride) { + for (offset = 0; offset < kcov->size; offset += stride) READ_ONCE(area[offset]); - } } static int kcov_ioctl_locked(struct kcov *kcov, unsigned int cmd, |