diff --git a/drivers/char/adsprpc.c b/drivers/char/adsprpc.c index 3da8f64444a3..b042a3d57de9 100644 --- a/drivers/char/adsprpc.c +++ b/drivers/char/adsprpc.c @@ -2931,7 +2931,7 @@ static int fastrpc_device_open(struct inode *inode, struct file *filp) if (err) return err; snprintf(strpid, PID_SIZE, "%d", current->pid); - buf_size = strlen(current->comm) + strlen(strpid) + 1; + buf_size = strlen(current->comm) + strlen("_") + strlen(strpid) + 1; fl->debug_buf = kzalloc(buf_size, GFP_KERNEL); snprintf(fl->debug_buf, UL_SIZE, "%.10s%s%d", current->comm, "_", current->pid);