summaryrefslogtreecommitdiffstats
path: root/net/irda/irmod.c
diff options
context:
space:
mode:
authorFabian Frederick <fabf@skynet.be>2015-02-23 18:38:24 +0100
committerDavid S. Miller <davem@davemloft.net>2015-02-23 23:21:11 +0100
commita948f8ce771a1f07c17ed8bcb51f59f69129a51c (patch)
treeebb5f5c97f00edc2fec15b4518e6f29ccdcbe3f7 /net/irda/irmod.c
parentnet: sched: export tc_connmark.h so it is uapi accessible (diff)
downloadlinux-a948f8ce771a1f07c17ed8bcb51f59f69129a51c.tar.xz
linux-a948f8ce771a1f07c17ed8bcb51f59f69129a51c.zip
irda: 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 can be 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> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/irda/irmod.c')
0 files changed, 0 insertions, 0 deletions