diff options
Diffstat (limited to 'tools/perf/util/thread.c')
| -rw-r--r-- | tools/perf/util/thread.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/perf/util/thread.c b/tools/perf/util/thread.c index e3948612543e..0358882c8910 100644 --- a/tools/perf/util/thread.c +++ b/tools/perf/util/thread.c | |||
| @@ -66,10 +66,13 @@ struct comm *thread__comm(const struct thread *thread) | |||
| 66 | int thread__set_comm(struct thread *thread, const char *str, u64 timestamp) | 66 | int thread__set_comm(struct thread *thread, const char *str, u64 timestamp) |
| 67 | { | 67 | { |
| 68 | struct comm *new, *curr = thread__comm(thread); | 68 | struct comm *new, *curr = thread__comm(thread); |
| 69 | int err; | ||
| 69 | 70 | ||
| 70 | /* Override latest entry if it had no specific time coverage */ | 71 | /* Override latest entry if it had no specific time coverage */ |
| 71 | if (!curr->start) { | 72 | if (!curr->start) { |
| 72 | comm__override(curr, str, timestamp); | 73 | err = comm__override(curr, str, timestamp); |
| 74 | if (err) | ||
| 75 | return err; | ||
| 73 | } else { | 76 | } else { |
| 74 | new = comm__new(str, timestamp); | 77 | new = comm__new(str, timestamp); |
| 75 | if (!new) | 78 | if (!new) |
