From: Jiri Slaby Date: Mon, 5 Mar 2012 13:51:58 +0000 (+0100) Subject: ALPHA: srmcons, fix racy singleton structure X-Git-Tag: v3.4-rc1~185^2~81 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ee024d494ab75426bc77e0c053700915f0a1a16d;p=pandora-kernel.git ALPHA: srmcons, fix racy singleton structure The test and the assignment were racy. Make it really a singleton. This is achieved by one global variable initialized at the module init. Signed-off-by: Jiri Slaby Cc: Richard Henderson Cc: Ivan Kokshaysky Cc: Matt Turner Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed