diff options
author | Jesper Juhl <[email protected]> | 2011-09-14 16:22:12 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2011-09-14 18:09:38 -0700 |
commit | 1ebe9dad947d3158676f5ae55fc8b4f05b85c527 (patch) | |
tree | b1b1e6475c826056e9f994eaa843513396fce605 /lib/mpi/mpiutil.c | |
parent | 83ede96e98f5a7eb3ed07c78cb1dd166581eb864 (diff) |
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 <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
Cc: J Freyensee <[email protected]>
Cc: Jeremy Rocher <[email protected]>
Cc: Sergei Trofimovich <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions