git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
lockd: fix the endianness bug
[pandora-kernel.git]
/
fs
/
lockd
/
clnt4xdr.c
diff --git
a/fs/lockd/clnt4xdr.c
b/fs/lockd/clnt4xdr.c
index
3ddcbb1
..
13ad153
100644
(file)
--- a/
fs/lockd/clnt4xdr.c
+++ b/
fs/lockd/clnt4xdr.c
@@
-241,7
+241,7
@@
static int decode_nlm4_stat(struct xdr_stream *xdr, __be32 *stat)
p = xdr_inline_decode(xdr, 4);
if (unlikely(p == NULL))
goto out_overflow;
- if (unlikely(
*p > nlm4_failed
))
+ if (unlikely(
ntohl(*p) > ntohl(nlm4_failed)
))
goto out_bad_xdr;
*stat = *p;
return 0;