mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
Revert "printk: return -EINVAL if the message len is bigger than the buf size"
This reverts commit b56a39ac26.
A better patch from Jan will follow this to resolve the issue.
Acked-by: Kay Sievers <[email protected]>
Cc: Fengguang Wu <[email protected]>
Cc: Yuanhan Liu <[email protected]>
Cc: Jan Beulich <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
4661e3568a
commit
6fda135c90
1 changed files with 1 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue