summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorGeliang Tang <geliangtang@163.com>2015-10-09 05:04:26 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-10-18 05:05:17 (GMT)
commitc3af8a28f43315fc46753465a4e77e5619dd9f30 (patch)
tree629e2047fdef9f35b3c0ef83257e1510f0dc82a3 /drivers
parentac0a36679928e3e8d7cc0b4c2fd02fb368186992 (diff)
downloadlinux-c3af8a28f43315fc46753465a4e77e5619dd9f30.tar.xz
staging: IB/hfi1: use TASK_COMM_LEN in hfi1_ctxtdata
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/rdma/hfi1/hfi.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rdma/hfi1/hfi.h b/drivers/staging/rdma/hfi1/hfi.h
index 8ca171b..a35213e 100644
--- a/drivers/staging/rdma/hfi1/hfi.h
+++ b/drivers/staging/rdma/hfi1/hfi.h
@@ -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 */