mISDN: replace current->state by set_current_state()
authorFabian Frederick <fabf@skynet.be>
Fri, 20 Feb 2015 18:12:52 +0000 (19:12 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 22 Feb 2015 20:24:10 +0000 (15:24 -0500)
commit45cee4f594bcb3083c2d8475462af2f2ddf29aff
tree18c6d635c77105420915b2877c2f84ea281250ed
parent3f34b24a732bab9635c4b32823268c37c01b40f0
mISDN: replace current->state by set_current_state()

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

Thanks to Peter Zijlstra for the exact definition of the problem.

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/isdn/hardware/mISDN/hfcpci.c