Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party NuttX
提交
468c3210
T
Third Party NuttX
项目概览
OpenHarmony
/
Third Party NuttX
大约 1 年 前同步成功
通知
5
Star
19
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Third Party NuttX
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
468c3210
编写于
1月 20, 2022
作者:
W
wanghao-free
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: 解决release1.0.1分支wifi从列表退出到桌面卡住问题
该问题在master主干不存在 Signed-off-by:
N
wanghao-free
<
wanghao453@huawei.com
>
上级
5616b89d
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
9 addition
and
1 deletion
+9
-1
drivers/pipes/pipe.c
drivers/pipes/pipe.c
+9
-1
未找到文件。
drivers/pipes/pipe.c
浏览文件 @
468c3210
...
@@ -232,8 +232,9 @@ static void UpdateDev(struct pipe_dev_s *dev)
...
@@ -232,8 +232,9 @@ static void UpdateDev(struct pipe_dev_s *dev)
FAR
struct
inode
*
node
;
FAR
struct
inode
*
node
;
struct
pipe_dev_s
*
olddev
=
NULL
;
struct
pipe_dev_s
*
olddev
=
NULL
;
char
devname
[
16
];
struct
inode_search_s
desc
;
struct
inode_search_s
desc
;
SETUP_SEARCH
(
&
desc
,
dev
->
name
,
fa
sl
e
);
SETUP_SEARCH
(
&
desc
,
dev
->
name
,
fa
ls
e
);
FAR
const
char
*
path
=
desc
.
path
;
FAR
const
char
*
path
=
desc
.
path
;
FAR
const
char
**
relpath
=
&
(
desc
.
relpath
);
FAR
const
char
**
relpath
=
&
(
desc
.
relpath
);
FAR
struct
inode
**
peer
=
&
(
desc
.
peer
);
FAR
struct
inode
**
peer
=
&
(
desc
.
peer
);
...
@@ -248,6 +249,12 @@ static void UpdateDev(struct pipe_dev_s *dev)
...
@@ -248,6 +249,12 @@ static void UpdateDev(struct pipe_dev_s *dev)
return
;
return
;
}
}
node
=
desc
.
node
;
node
=
desc
.
node
;
snprintf_s
(
devname
,
sizeof
(
devname
),
sizeof
(
devname
)
-
1
,
"pipe%d
\n
"
,
dev
->
d_pipeno
);
if
(
strncmp
(
devname
,
node
->
i_name
,
strlen
(
devname
))
!=
0
)
{
inode_semgive
();
PRINT_ERR
(
"[%s,%d] failed %s %s .
\n
"
,
__FUNCTION__
,
__LINE__
,
devname
,
node
->
i_name
);
return
;
}
olddev
=
(
struct
pipe_dev_s
*
)
node
->
i_private
;
olddev
=
(
struct
pipe_dev_s
*
)
node
->
i_private
;
if
(
olddev
!=
NULL
)
if
(
olddev
!=
NULL
)
{
{
...
@@ -357,6 +364,7 @@ errout_with_wrfd:
...
@@ -357,6 +364,7 @@ errout_with_wrfd:
errout_with_driver:
errout_with_driver:
unregister_driver
(
devname
);
unregister_driver
(
devname
);
g_pipecreated
&=
~
(
1
<<
pipeno
);
errout_with_dev:
errout_with_dev:
if
(
dev
)
if
(
dev
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录