Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
cf507b6f
R
raspberrypi-kernel
项目概览
openeuler
/
raspberrypi-kernel
通知
13
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
raspberrypi-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
cf507b6f
编写于
3月 17, 2011
作者:
J
J. Bruce Fields
浏览文件
操作
浏览文件
下载
差异文件
Merge create_session decoding fix into for-2.6.39
This needs a further fixup!
上级
9ae78bcc
3ec07aa9
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
10 addition
and
9 deletion
+10
-9
fs/nfsd/nfs4callback.c
fs/nfsd/nfs4callback.c
+1
-1
fs/nfsd/nfs4state.c
fs/nfsd/nfs4state.c
+7
-6
fs/nfsd/nfs4xdr.c
fs/nfsd/nfs4xdr.c
+2
-2
未找到文件。
fs/nfsd/nfs4callback.c
浏览文件 @
cf507b6f
...
...
@@ -432,7 +432,7 @@ static int decode_cb_sequence4resok(struct xdr_stream *xdr,
* If the server returns different values for sessionID, slotID or
* sequence number, the server is looney tunes.
*/
p
=
xdr_inline_decode
(
xdr
,
NFS4_MAX_SESSIONID_LEN
+
4
+
4
);
p
=
xdr_inline_decode
(
xdr
,
NFS4_MAX_SESSIONID_LEN
+
4
+
4
+
4
+
4
);
if
(
unlikely
(
p
==
NULL
))
goto
out_overflow
;
memcpy
(
id
.
data
,
p
,
NFS4_MAX_SESSIONID_LEN
);
...
...
fs/nfsd/nfs4state.c
浏览文件 @
cf507b6f
...
...
@@ -2446,15 +2446,16 @@ nfs4_check_delegmode(struct nfs4_delegation *dp, int flags)
static
struct
nfs4_delegation
*
find_delegation_file
(
struct
nfs4_file
*
fp
,
stateid_t
*
stid
)
{
struct
nfs4_delegation
*
dp
=
NULL
;
struct
nfs4_delegation
*
dp
;
spin_lock
(
&
recall_lock
);
list_for_each_entry
(
dp
,
&
fp
->
fi_delegations
,
dl_perfile
)
{
if
(
dp
->
dl_stateid
.
si_stateownerid
==
stid
->
si_stateownerid
)
break
;
}
list_for_each_entry
(
dp
,
&
fp
->
fi_delegations
,
dl_perfile
)
if
(
dp
->
dl_stateid
.
si_stateownerid
==
stid
->
si_stateownerid
)
{
spin_unlock
(
&
recall_lock
);
return
dp
;
}
spin_unlock
(
&
recall_lock
);
return
dp
;
return
NULL
;
}
int
share_access_to_flags
(
u32
share_access
)
...
...
fs/nfsd/nfs4xdr.c
浏览文件 @
cf507b6f
...
...
@@ -1142,7 +1142,7 @@ nfsd4_decode_create_session(struct nfsd4_compoundargs *argp,
u32
dummy
;
char
*
machine_name
;
int
i
;
int
i
,
j
;
int
nr_secflavs
;
READ_BUF
(
16
);
...
...
@@ -1215,7 +1215,7 @@ nfsd4_decode_create_session(struct nfsd4_compoundargs *argp,
READ_BUF
(
4
);
READ32
(
dummy
);
READ_BUF
(
dummy
*
4
);
for
(
i
=
0
;
i
<
dummy
;
++
i
)
for
(
j
=
0
;
j
<
dummy
;
++
j
)
READ32
(
dummy
);
break
;
case
RPC_AUTH_GSS
:
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录