Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d36ecd2a authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: adsprpc: Fix memory out of bounds error"

parents aeebb93b 2d65b4a3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3434,7 +3434,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);