aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kernel/perf_event.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/perf_event.c b/kernel/perf_event.c
index aba822722300..b26cb03c1914 100644
--- a/kernel/perf_event.c
+++ b/kernel/perf_event.c
@@ -3391,7 +3391,7 @@ static void perf_event_comm_event(struct perf_comm_event *comm_event)
3391 char comm[TASK_COMM_LEN]; 3391 char comm[TASK_COMM_LEN];
3392 3392
3393 memset(comm, 0, sizeof(comm)); 3393 memset(comm, 0, sizeof(comm));
3394 strncpy(comm, comm_event->task->comm, sizeof(comm)); 3394 strlcpy(comm, comm_event->task->comm, sizeof(comm));
3395 size = ALIGN(strlen(comm)+1, sizeof(u64)); 3395 size = ALIGN(strlen(comm)+1, sizeof(u64));
3396 3396
3397 comm_event->comm = comm; 3397 comm_event->comm = comm;