Skip to content

Commit eeb91f9

Browse files
xairytorvalds
authored andcommitted
kcov: move t->kcov_sequence assignment
Move t->kcov_sequence assignment before assigning t->kcov_mode for consistency. Signed-off-by: Andrey Konovalov <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Reviewed-by: Dmitry Vyukov <[email protected]> Cc: Alan Stern <[email protected]> Cc: Alexander Potapenko <[email protected]> Cc: Greg Kroah-Hartman <[email protected]> Cc: Marco Elver <[email protected]> Cc: Andrey Konovalov <[email protected]> Link: http://lkml.kernel.org/r/5889efe35e0b300e69dba97216b1288d9c2428a8.1585233617.git.andreyknvl@google.com Link: http://lkml.kernel.org/r/f0283c676bab3335cb48bfe12d375a3da4719f59.1584655448.git.andreyknvl@google.com Signed-off-by: Linus Torvalds <[email protected]>
1 parent 76484b1 commit eeb91f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/kcov.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,10 +318,10 @@ static void kcov_start(struct task_struct *t, struct kcov *kcov,
318318
/* Cache in task struct for performance. */
319319
t->kcov_size = size;
320320
t->kcov_area = area;
321+
t->kcov_sequence = sequence;
321322
/* See comment in check_kcov_mode(). */
322323
barrier();
323324
WRITE_ONCE(t->kcov_mode, mode);
324-
t->kcov_sequence = sequence;
325325
}
326326

327327
static void kcov_stop(struct task_struct *t)

0 commit comments

Comments
 (0)