Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Branch HEAD
[fs/lustre-release.git]
/
lustre
/
ptlrpc
/
sec.c
diff --git
a/lustre/ptlrpc/sec.c
b/lustre/ptlrpc/sec.c
index
6e6b5d1
..
977ac89
100644
(file)
--- a/
lustre/ptlrpc/sec.c
+++ b/
lustre/ptlrpc/sec.c
@@
-2223,7
+2223,7
@@
int sptlrpc_unpack_user_desc(struct lustre_msg *msg, int offset)
if (!pud)
return -EINVAL;
if (!pud)
return -EINVAL;
- if (lustre_msg_
need_swab
(msg)) {
+ if (lustre_msg_
swabbed
(msg)) {
__swab32s(&pud->pud_uid);
__swab32s(&pud->pud_gid);
__swab32s(&pud->pud_fsuid);
__swab32s(&pud->pud_uid);
__swab32s(&pud->pud_gid);
__swab32s(&pud->pud_fsuid);
@@
-2244,7
+2244,7
@@
int sptlrpc_unpack_user_desc(struct lustre_msg *msg, int offset)
return -EINVAL;
}
return -EINVAL;
}
- if (lustre_msg_
need_swab
(msg)) {
+ if (lustre_msg_
swabbed
(msg)) {
for (i = 0; i < pud->pud_ngroups; i++)
__swab32s(&pud->pud_groups[i]);
}
for (i = 0; i < pud->pud_ngroups; i++)
__swab32s(&pud->pud_groups[i]);
}