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

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

Merge "regulator: core: Fix buffer overflow issue"

parents 1756e8a5 50b311fd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3824,7 +3824,7 @@ static ssize_t reg_debug_volt_get(struct file *file, char __user *buf,
	mutex_lock(&debug_buf_mutex);

	output = snprintf(debug_buf, MAX_DEBUG_BUF_LEN-1, "%d\n", voltage);
	rc = simple_read_from_buffer((void __user *) buf, output, ppos,
	rc = simple_read_from_buffer((void __user *) buf, count, ppos,
					(void *) debug_buf, output);

	mutex_unlock(&debug_buf_mutex);