From: Jesper Juhl Date: Wed, 14 Sep 2011 23:22:12 +0000 (-0700) Subject: drivers/misc/pti.c: give 'comm' function scope in pti_control_frame_built_and_sent() X-Git-Tag: v3.1-rc7~43 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1ebe9dad947d3158676f5ae55fc8b4f05b85c527;p=pandora-kernel.git drivers/misc/pti.c: give 'comm' function scope in pti_control_frame_built_and_sent() In drivers/misc/pti.c::pti_control_frame_built_and_sent() we assign 'comm' to 'thread_name_p' if (!thread_name). The problem is that 'comm' then goes out of scope and later we use 'thread_name_p' which now refers to an out-of-scope variable. To fix that, simply move 'comm' up to have function scope. Signed-off-by: Jesper Juhl Cc: Greg Kroah-Hartman Cc: J Freyensee Cc: Jeremy Rocher Cc: Sergei Trofimovich Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed