From: Fabian Frederick Date: Fri, 20 Feb 2015 18:12:54 +0000 (-0300) Subject: [media] saa7146: replace current->state by set_current_state() X-Git-Tag: omap-for-v4.2/o2_dc~62^2~1^2~295 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f35593fdc8851aa28f6949bd48fe90653d383017;p=pandora-kernel.git [media] saa7146: 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: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed