From: Fabian Frederick Date: Fri, 20 Feb 2015 18:12:57 +0000 (+0100) Subject: serial: core: replace current->state by __set_current_state() X-Git-Tag: omap-for-v4.1/fixes-rc1~74^2~77^2~42 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=97f9f707d26dfe34368a5b88f1996f2eaf973b42;p=pandora-kernel.git serial: core: 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 Signed-off-by: Fabian Frederick Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed