git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'master'
[sfrench/cifs-2.6.git]
/
include
/
linux
/
sunrpc
/
svc.h
diff --git
a/include/linux/sunrpc/svc.h
b/include/linux/sunrpc/svc.h
index 5af8800e0ce328a05aa7cbaeaa0b604ba28b00ab..e4086ec8b952a3a87b5f16bd654df3c70a05066a 100644
(file)
--- a/
include/linux/sunrpc/svc.h
+++ b/
include/linux/sunrpc/svc.h
@@
-171,7
+171,8
@@
xdr_argsize_check(struct svc_rqst *rqstp, u32 *p)
{
char *cp = (char *)p;
struct kvec *vec = &rqstp->rq_arg.head[0];
- return cp - (char*)vec->iov_base <= vec->iov_len;
+ return cp >= (char*)vec->iov_base
+ && cp <= (char*)vec->iov_base + vec->iov_len;
}
static inline int