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

Commit 6fda135c authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman
Browse files

Revert "printk: return -EINVAL if the message len is bigger than the buf size"



This reverts commit b56a39ac.

A better patch from Jan will follow this to resolve the issue.

Acked-by: default avatarKay Sievers <kay@vrfy.org>
Cc: Fengguang Wu <wfg@linux.intel.com>
Cc: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Cc: Jan Beulich <JBeulich@suse.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 4661e356
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -880,9 +880,7 @@ static int syslog_print(char __user *buf, int size)
	syslog_seq++;
	raw_spin_unlock_irq(&logbuf_lock);

	if (len > size)
		len = -EINVAL;
	else if (len > 0 && copy_to_user(buf, text, len))
	if (len > 0 && copy_to_user(buf, text, len))
		len = -EFAULT;

	kfree(text);