]> Git Repo - linux.git/commit
irda: replace current->state by set_current_state()
authorFabian Frederick <[email protected]>
Mon, 23 Feb 2015 17:38:24 +0000 (18:38 +0100)
committerDavid S. Miller <[email protected]>
Mon, 23 Feb 2015 22:21:11 +0000 (17:21 -0500)
commita948f8ce771a1f07c17ed8bcb51f59f69129a51c
treeebb5f5c97f00edc2fec15b4518e6f29ccdcbe3f7
parent30ff54765976e132674e3eae2071ed8ed494665c
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 <[email protected]>
Signed-off-by: Fabian Frederick <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
net/irda/ircomm/ircomm_tty.c
net/irda/irnet/irnet_ppp.c
This page took 0.062045 seconds and 4 git commands to generate.