update new sdk
This commit is contained in:
parent
f33907443a
commit
744c72c133
1643 changed files with 83006 additions and 28021 deletions
3
lichee/linux-4.9/kernel/futex.c
Normal file → Executable file
3
lichee/linux-4.9/kernel/futex.c
Normal file → Executable file
|
@ -1947,6 +1947,9 @@ retry_private:
|
|||
drop_count++;
|
||||
}
|
||||
|
||||
if (nr_wake < 0 || nr_requeue < 0)
|
||||
return -EINVAL;
|
||||
|
||||
/*
|
||||
* We took an extra initial reference to the pi_state either
|
||||
* in futex_proxy_trylock_atomic() or in lookup_pi_state(). We
|
||||
|
|
10
lichee/linux-4.9/kernel/printk/printk.c
Normal file → Executable file
10
lichee/linux-4.9/kernel/printk/printk.c
Normal file → Executable file
|
@ -580,6 +580,7 @@ static int log_store(int facility, int level,
|
|||
memcpy(log_text(msg) + text_len, trunc_msg, trunc_msg_len);
|
||||
msg->text_len += trunc_msg_len;
|
||||
}
|
||||
if (dict != NULL)
|
||||
memcpy(log_dict(msg), dict, dict_len);
|
||||
msg->dict_len = dict_len;
|
||||
msg->facility = facility;
|
||||
|
@ -753,8 +754,13 @@ static ssize_t devkmsg_write(struct kiocb *iocb, struct iov_iter *from)
|
|||
|
||||
/* Ratelimit when not explicitly enabled. */
|
||||
if (!(devkmsg_log & DEVKMSG_LOG_MASK_ON)) {
|
||||
if (!___ratelimit(&user->rs, current->comm))
|
||||
return ret;
|
||||
/* allow android-init process write /dev/kmsg without ratelimit
|
||||
* add by jiangbin 18/06/10
|
||||
*/
|
||||
if ((current->pid != 1) || (strcmp(current->comm, "init"))) {
|
||||
if (!___ratelimit(&user->rs, current->comm))
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
buf = kmalloc(len+1, GFP_KERNEL);
|
||||
|
|
2
lichee/linux-4.9/kernel/resource.c
Normal file → Executable file
2
lichee/linux-4.9/kernel/resource.c
Normal file → Executable file
|
@ -172,7 +172,7 @@ static const struct file_operations proc_iomem_operations = {
|
|||
static int __init ioresources_init(void)
|
||||
{
|
||||
proc_create("ioports", 0, NULL, &proc_ioports_operations);
|
||||
proc_create("iomem", 0, NULL, &proc_iomem_operations);
|
||||
proc_create("iomem", S_IRUSR, NULL, &proc_iomem_operations);
|
||||
return 0;
|
||||
}
|
||||
__initcall(ioresources_init);
|
||||
|
|
2
lichee/linux-4.9/kernel/trace/trace_printk.c
Normal file → Executable file
2
lichee/linux-4.9/kernel/trace/trace_printk.c
Normal file → Executable file
|
@ -304,7 +304,7 @@ static int t_show(struct seq_file *m, void *v)
|
|||
if (!*fmt)
|
||||
return 0;
|
||||
|
||||
seq_printf(m, "0x%lx : \"", *(unsigned long *)fmt);
|
||||
seq_printf(m, "0x%lx : \"", 0L);
|
||||
|
||||
/*
|
||||
* Tabs and new lines need to be converted.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue