mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
[PATCH] remove the syslog interface when printk is disabled
Attempts to read() from the non-existent dmesg buffer will return zero and userspace tends to get stuck in a busyloop. So just remove /dev/kmsg altogether if CONFIG_PRINTK=n. Signed-off-by: Mike Galbraith <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
44ddc4f567
commit
c36264dfb2
3 changed files with 5 additions and 7 deletions
|
|
@ -631,12 +631,7 @@ EXPORT_SYMBOL(vprintk);
|
|||
|
||||
asmlinkage long sys_syslog(int type, char __user *buf, int len)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
int do_syslog(int type, char __user *buf, int len)
|
||||
{
|
||||
return 0;
|
||||
return -ENOSYS;
|
||||
}
|
||||
|
||||
static void call_console_drivers(unsigned long start, unsigned long end)
|
||||
|
|
|
|||
Loading…
Reference in a new issue