提交 5a0e3e14 编写于 作者: O openharmony_ci 提交者: Gitee

!95 fix: fix init.cfg and ueventd bugs

Merge pull request !95 from 熊磊/init825
......@@ -96,7 +96,7 @@
"write /proc/sys/kernel/sched_child_runs_first 0",
"write /proc/sys/kernel/randomize_va_space 2",
"write /proc/sys/vm/mmap_min_addr 32768",
"write /proc/sys/net/ipv4/ping_group_range \"0 2147483647\"",
"write /proc/sys/net/ipv4/ping_group_range 0 2147483647",
"write /proc/sys/net/unix/max_dgram_qlen 600",
"write /proc/sys/kernel/sched_rt_runtime_us 950000",
"write /proc/sys/kernel/sched_rt_period_us 1000000",
......
......@@ -646,6 +646,9 @@ static const char *ParseDeviceName(const struct Uevent *uevent, unsigned int len
if ((uevent->major < 0) || (uevent->minor < 0)) {
return NULL;
}
if (uevent->deviceName == NULL || uevent->deviceName[0] == '\0') {
return NULL;
}
/* do we have a name? */
const char *name = strrchr(uevent->path, '/');
if (!name) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册