|
@@ -947,12 +947,13 @@ static void flush_old_files(struct files_struct * files)
|
|
|
spin_unlock(&files->file_lock);
|
|
|
}
|
|
|
|
|
|
-void get_task_comm(char *buf, struct task_struct *tsk)
|
|
|
+char *get_task_comm(char *buf, struct task_struct *tsk)
|
|
|
{
|
|
|
/* buf must be at least sizeof(tsk->comm) in size */
|
|
|
task_lock(tsk);
|
|
|
strncpy(buf, tsk->comm, sizeof(tsk->comm));
|
|
|
task_unlock(tsk);
|
|
|
+ return buf;
|
|
|
}
|
|
|
|
|
|
void set_task_comm(struct task_struct *tsk, char *buf)
|