提交 8ce4bb38 编写于 作者: S sun_fan

init: fix init bugs

Signed-off-by: Nsun_fan <sun_fan1@hoperun.com>
上级 40216dd9
......@@ -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.
先完成此消息的编辑!
想要评论请 注册