From e36ddaffec66a3c629db60955fbcf3f4120a5c8e Mon Sep 17 00:00:00 2001 From: Jesper Juhl Date: Wed, 14 Sep 2011 16:22:12 -0700 Subject: [PATCH] --- yaml --- r: 263828 b: refs/heads/master c: 1ebe9dad947d3158676f5ae55fc8b4f05b85c527 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/drivers/misc/pti.c | 12 +++++------- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/[refs] b/[refs] index 945d11b692ad..14b5fee8f9d2 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 83ede96e98f5a7eb3ed07c78cb1dd166581eb864 +refs/heads/master: 1ebe9dad947d3158676f5ae55fc8b4f05b85c527 diff --git a/trunk/drivers/misc/pti.c b/trunk/drivers/misc/pti.c index 06df1877ad0f..0b56e3f43573 100644 --- a/trunk/drivers/misc/pti.c +++ b/trunk/drivers/misc/pti.c @@ -165,6 +165,11 @@ static void pti_write_to_aperture(struct pti_masterchannel *mc, static void pti_control_frame_built_and_sent(struct pti_masterchannel *mc, const char *thread_name) { + /* + * Since we access the comm member in current's task_struct, we only + * need to be as large as what 'comm' in that structure is. + */ + char comm[TASK_COMM_LEN]; struct pti_masterchannel mccontrol = {.master = CONTROL_ID, .channel = 0}; const char *thread_name_p; @@ -172,13 +177,6 @@ static void pti_control_frame_built_and_sent(struct pti_masterchannel *mc, u8 control_frame[CONTROL_FRAME_LEN]; if (!thread_name) { - /* - * Since we access the comm member in current's task_struct, - * we only need to be as large as what 'comm' in that - * structure is. - */ - char comm[TASK_COMM_LEN]; - if (!in_interrupt()) get_task_comm(comm, current); else