From: Jonathan Corbet Date: Thu, 6 Aug 2009 19:35:44 +0000 (-0600) Subject: pm_qos: clean up racy global "name" variable X-Git-Tag: v2.6.33-rc1~359^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1a6deaea3584fd7af1cad492b1fe0867060b45db;p=pandora-kernel.git pm_qos: clean up racy global "name" variable "name" is a poor name for a file-global variable. It was used in three different functions, with no mutual exclusion. But it's just a tiny, temporary string; let's just move it onto the stack in the functions that need it. Also use snprintf() just in case. Signed-off-by: Jonathan Corbet LKML-Reference: <20091010153349.113570550@linutronix.de> Acked-by: Mark Gross Reviewed-by: Frederic Weisbecker Signed-off-by: Thomas Gleixner --- Reading git-diff-tree failed