staging: IB/hfi1: use TASK_COMM_LEN in hfi1_ctxtdata
authorGeliang Tang <geliangtang@163.com>
Fri, 9 Oct 2015 05:04:26 +0000 (22:04 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 18 Oct 2015 05:05:17 +0000 (22:05 -0700)
Use comm[TASK_COMM_LEN] instead of comm[16].

Signed-off-by: Geliang Tang <geliangtang@163.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rdma/hfi1/hfi.h

index 8ca171bf3e36c4d8a181a85837cfae9524bfb725..a35213e9b500d92f5294fb663d1c09f685d40154 100644 (file)
@@ -262,7 +262,7 @@ struct hfi1_ctxtdata {
        pid_t pid;
        pid_t subpid[HFI1_MAX_SHARED_CTXTS];
        /* same size as task_struct .comm[], command that opened context */
-       char comm[16];
+       char comm[TASK_COMM_LEN];
        /* so file ops can get at unit */
        struct hfi1_devdata *dd;
        /* so functions that need physical port can get it easily */