hso: replace current->state by __set_current_state()
authorFabian Frederick <[email protected]>
Fri, 20 Feb 2015 18:12:55 +0000 (19:12 +0100)
committerDavid S. Miller <[email protected]>
Sun, 22 Feb 2015 20:24:10 +0000 (15:24 -0500)
commit50462ce0052c67b5a06f19fb7c7f308813006879
treefa0ee3b4d3d46d5c4b21f8b215b8a6af0005ff8d
parent45cee4f594bcb3083c2d8475462af2f2ddf29aff
hso: 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 <[email protected]>
Signed-off-by: Fabian Frederick <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/usb/hso.c