]> git.baikalelectronics.ru Git - kernel.git/commit
serial: core: replace current->state by __set_current_state()
authorFabian Frederick <fabf@skynet.be>
Fri, 20 Feb 2015 18:12:57 +0000 (19:12 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 7 Mar 2015 02:08:42 +0000 (03:08 +0100)
commit67e49eeb79128e30f95210a670b7c53c73f945fb
tree366b6e1778ad0489755a74289e1622f6145f9dff
parent6ba2cb7c44099b53ca5d687871f6f3ddb83679d4
serial: core: replace current->state by __set_current_state()

Use helper functions to access current->state.
Direct assignments are prone to races and therefore buggy.

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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/serial_core.c