projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bbae8bc
)
NFS: Fix a double free in nfs_parse_mount_options()
author
Trond Myklebust
<
[email protected]
>
Mon, 6 Apr 2009 23:41:35 +0000
(16:41 -0700)
committer
Linus Torvalds
<
[email protected]
>
Tue, 7 Apr 2009 00:19:48 +0000
(17:19 -0700)
Due to an apparent typo, commit
a67d18f89f5782806135aad4ee012ff78d45aae7
(NFS: load the rpc/rdma transport module automatically) lead to the
'proto=' mount option doing a double free, while Opt_mountproto leaks a
string.
Signed-off-by: Trond Myklebust <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
fs/nfs/super.c
patch
|
blob
|
history
diff --git
a/fs/nfs/super.c
b/fs/nfs/super.c
index 82eaadbff40872f6fbae90e52a8acf28bca52d7c..6717200923fe31c0b8f733c9544e8d5307b9d2a5 100644
(file)
--- a/
fs/nfs/super.c
+++ b/
fs/nfs/super.c
@@
-1228,7
+1228,6
@@
static int nfs_parse_mount_options(char *raw,
goto out_nomem;
token = match_token(string,
nfs_xprt_protocol_tokens, args);
- kfree(string);
switch (token) {
case Opt_xprt_udp:
@@
-1258,6
+1257,7
@@
static int nfs_parse_mount_options(char *raw,
goto out_nomem;
token = match_token(string,
nfs_xprt_protocol_tokens, args);
+ kfree(string);
switch (token) {
case Opt_xprt_udp: