diff options
author | Fabian Frederick <fabf@skynet.be> | 2015-02-20 19:12:56 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-02-22 15:24:10 -0500 |
commit | 2c45015a66a171de306e23991fec998667b49acf (patch) | |
tree | 016747c3d73ec9a3802ba19fad9724a52258d9cb /scripts/ksymoops | |
parent | 50462ce0052c67b5a06f19fb7c7f308813006879 (diff) | |
download | linux-2c45015a66a171de306e23991fec998667b49acf.tar.bz2 |
wan: cosa: replace current->state by set_current_state()
Use helper functions to access current->state.
Direct assignments are prone to races and therefore buggy.
current->state = TASK_RUNNING is replaced by __set_current_state()
Thanks to Peter Zijlstra for the exact definition of the problem.
Suggested-By: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Acked-By: Jan "Yenya" Kasprzak <kas@fi.muni.cz>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'scripts/ksymoops')
0 files changed, 0 insertions, 0 deletions