projects
/
deliverable
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c8651b
)
NFSD: pass null terminated buf to kstrtouint()
author
Malahal Naineni
<malahal@us.ibm.com>
Sun, 9 Sep 2012 15:25:47 +0000
(10:25 -0500)
committer
J. Bruce Fields
<bfields@redhat.com>
Mon, 10 Sep 2012 21:46:19 +0000
(17:46 -0400)
The 'buf' is prepared with null termination with intention of using it for
this purpose, but 'name' is passed instead!
Signed-off-by: Malahal Naineni <malahal@us.ibm.com>
Cc: stable@vger.kernel.org
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4idmap.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/nfsd/nfs4idmap.c
b/fs/nfsd/nfs4idmap.c
index 11df4aca89baef8d7c331a65ed21295db89b767c..a1f10c0a62553d0642b02adc7a66bd7a60c0139c 100644
(file)
--- a/
fs/nfsd/nfs4idmap.c
+++ b/
fs/nfsd/nfs4idmap.c
@@
-598,7
+598,7
@@
numeric_name_to_id(struct svc_rqst *rqstp, int type, const char *name, u32 namel
/* Just to make sure it's null-terminated: */
memcpy(buf, name, namelen);
buf[namelen] = '\0';
- ret = kstrtouint(
name
, 10, id);
+ ret = kstrtouint(
buf
, 10, id);
return ret == 0;
}
This page took
0.025065 seconds
and
5
git commands to generate.