From: Fabian Frederick Date: Fri, 20 Feb 2015 18:12:56 +0000 (+0100) Subject: wan: cosa: replace current->state by set_current_state() X-Git-Tag: omap-for-v4.1/wl12xx-dt~68^2~60 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c45015a66a171de306e23991fec998667b49acf;p=pandora-kernel.git wan: cosa: 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 is 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 Acked-By: Jan "Yenya" Kasprzak Signed-off-by: David S. Miller --- Reading git-diff-tree failed