From: Fabian Frederick Date: Mon, 23 Feb 2015 17:38:24 +0000 (+0100) Subject: irda: replace current->state by set_current_state() X-Git-Tag: omap-for-v4.1/wl12xx-dt~68^2~51 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a948f8ce771a1f07c17ed8bcb51f59f69129a51c;p=pandora-kernel.git 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 Signed-off-by: Fabian Frederick Signed-off-by: David S. Miller --- Reading git-diff-tree failed