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:
ad39602
)
nfs: Fix nfs_parse_mount_options() kfree() leak
author
Yinghai Lu
<
[email protected]
>
Tue, 20 Oct 2009 05:13:46 +0000
(14:13 +0900)
committer
Linus Torvalds
<
[email protected]
>
Wed, 21 Oct 2009 23:15:23 +0000
(08:15 +0900)
Fix a (small) memory leak in one of the error paths of the NFS mount
options parsing code.
Regression introduced in 2.6.30 by commit
a67d18f
(NFS: load the
rpc/rdma transport module automatically).
Reported-by: Yinghai Lu <
[email protected]
>
Reported-by: Pekka Enberg <
[email protected]
>
Signed-off-by: Ingo Molnar <
[email protected]
>
Signed-off-by: Trond Myklebust <
[email protected]
>
Cc:
[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 a2c18acb856837f157a9e871fe1e511abc0911cc..90be551b80c19fa2733349cbecfdfe231f2a5573 100644
(file)
--- a/
fs/nfs/super.c
+++ b/
fs/nfs/super.c
@@
-1253,6
+1253,7
@@
static int nfs_parse_mount_options(char *raw,
default:
dfprintk(MOUNT, "NFS: unrecognized "
"transport protocol\n");
+ kfree(string);
return 0;
}
break;