|
@@ -1616,7 +1616,7 @@ static int try_alloc_port(struct ipath_devdata *dd, int port,
|
|
pd->port_cnt = 1;
|
|
pd->port_cnt = 1;
|
|
port_fp(fp) = pd;
|
|
port_fp(fp) = pd;
|
|
pd->port_pid = get_pid(task_pid(current));
|
|
pd->port_pid = get_pid(task_pid(current));
|
|
- strncpy(pd->port_comm, current->comm, sizeof(pd->port_comm));
|
|
|
|
|
|
+ strlcpy(pd->port_comm, current->comm, sizeof(pd->port_comm));
|
|
ipath_stats.sps_ports++;
|
|
ipath_stats.sps_ports++;
|
|
ret = 0;
|
|
ret = 0;
|
|
} else
|
|
} else
|