Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 140988
b: refs/heads/master
c: 50d8875
h: refs/heads/master
v: v3
  • Loading branch information
Thomas Gleixner authored and Ingo Molnar committed Mar 18, 2009
1 parent 4b7f760 commit 62150f3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2c7eea4c62ba090b7f4583c3d7337ea0019be900
refs/heads/master: 50d88758a3f9787cbdbdbc030560b815721eab4b
9 changes: 4 additions & 5 deletions trunk/kernel/trace/trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -787,12 +787,11 @@ void trace_find_cmdline(int pid, char comm[])

__raw_spin_lock(&trace_cmdline_lock);
map = map_pid_to_cmdline[pid];
if (map == NO_CMDLINE_MAP)
goto out;

strcpy(comm, saved_cmdlines[map]);
if (map != NO_CMDLINE_MAP)
strcpy(comm, saved_cmdlines[map]);
else
strcpy(comm, "<...>");

out:
__raw_spin_unlock(&trace_cmdline_lock);
}

Expand Down

0 comments on commit 62150f3

Please sign in to comment.