Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Kernel Liteos A
提交
b797f505
K
Kernel Liteos A
项目概览
OpenHarmony
/
Kernel Liteos A
大约 1 年 前同步成功
通知
452
Star
414
Fork
55
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
4
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel Liteos A
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
4
Issue
4
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
b797f505
编写于
3月 09, 2022
作者:
O
openharmony_ci
提交者:
Gitee
3月 09, 2022
浏览文件
操作
浏览文件
下载
差异文件
!813 主干告警清零
Merge pull request !813 from yinjiaming/master
上级
913d22bf
672bc729
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
7 addition
and
7 deletion
+7
-7
arch/arm/arm/src/strncpy_from_user.c
arch/arm/arm/src/strncpy_from_user.c
+1
-1
fs/vfs/operation/vfs_fallocate64.c
fs/vfs/operation/vfs_fallocate64.c
+1
-1
kernel/extended/liteipc/hm_liteipc.c
kernel/extended/liteipc/hm_liteipc.c
+5
-5
未找到文件。
arch/arm/arm/src/strncpy_from_user.c
浏览文件 @
b797f505
...
...
@@ -46,7 +46,7 @@ INT32 LOS_StrncpyFromUser(CHAR *dst, const CHAR *src, INT32 count)
}
maxCount
=
(
LOS_IsUserAddressRange
((
VADDR_T
)(
UINTPTR
)
src
,
(
size_t
)
count
))
?
\
count
:
(
USER_ASPACE_TOP_MAX
-
(
UINTPTR
)
src
);
count
:
(
INT32
)(
USER_ASPACE_TOP_MAX
-
(
UINTPTR
)
src
);
for
(
i
=
0
;
i
<
maxCount
;
++
i
)
{
if
(
LOS_GetUser
(
&
character
,
src
+
offset
)
!=
LOS_OK
)
{
...
...
fs/vfs/operation/vfs_fallocate64.c
浏览文件 @
b797f505
...
...
@@ -133,7 +133,7 @@ int fallocate64(int fd, int mode, off64_t offset, off64_t len)
return
VFS_ERROR
;
}
if
(
filep
->
f_oflags
&
O_DIRECTORY
)
{
if
(
(
unsigned
int
)
filep
->
f_oflags
&
O_DIRECTORY
)
{
set_errno
(
EBADF
);
return
VFS_ERROR
;
}
...
...
kernel/extended/liteipc/hm_liteipc.c
浏览文件 @
b797f505
...
...
@@ -1306,15 +1306,15 @@ LITE_OS_SEC_TEXT int LiteIpcIoctl(struct file *filep, int cmd, unsigned long arg
switch
(
cmd
)
{
case
IPC_SET_CMS
:
return
SetCms
(
arg
);
return
(
INT32
)
SetCms
(
arg
);
case
IPC_CMS_CMD
:
return
HandleCmsCmd
((
CmsCmdContent
*
)(
UINTPTR
)
arg
);
return
(
INT32
)
HandleCmsCmd
((
CmsCmdContent
*
)(
UINTPTR
)
arg
);
case
IPC_SET_IPC_THREAD
:
if
(
IsCmsSet
()
==
FALSE
)
{
PRINT_ERR
(
"Liteipc ServiceManager not set!
\n
"
);
return
-
EINVAL
;
}
return
SetIpcTask
();
return
(
INT32
)
SetIpcTask
();
case
IPC_SEND_RECV_MSG
:
if
(
arg
==
0
)
{
return
-
EINVAL
;
...
...
@@ -1325,12 +1325,12 @@ LITE_OS_SEC_TEXT int LiteIpcIoctl(struct file *filep, int cmd, unsigned long arg
}
ret
=
LiteIpcMsgHandle
((
IpcContent
*
)(
UINTPTR
)
arg
);
if
(
ret
!=
LOS_OK
)
{
return
ret
;
return
(
INT32
)
ret
;
}
break
;
default:
PRINT_ERR
(
"Unknow liteipc ioctl cmd:%d
\n
"
,
cmd
);
return
-
EINVAL
;
}
return
ret
;
return
(
INT32
)
ret
;
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录