SOURCES (LINUX_2_6): linux-2.6-smbfs-names_cache-memory-leak.patch...
pluto
pluto at pld-linux.org
Tue Nov 15 00:09:55 CET 2005
Author: pluto Date: Mon Nov 14 23:09:55 2005 GMT
Module: SOURCES Tag: LINUX_2_6
---- Log message:
- memleak fix.
---- Files affected:
SOURCES:
linux-2.6-smbfs-names_cache-memory-leak.patch (NONE -> 1.1.2.1) (NEW)
---- Diffs:
================================================================
Index: SOURCES/linux-2.6-smbfs-names_cache-memory-leak.patch
diff -u /dev/null SOURCES/linux-2.6-smbfs-names_cache-memory-leak.patch:1.1.2.1
--- /dev/null Tue Nov 15 00:09:55 2005
+++ SOURCES/linux-2.6-smbfs-names_cache-memory-leak.patch Tue Nov 15 00:09:50 2005
@@ -0,0 +1,36 @@
+
+From: Davi Arnaut <davi.arnaut at gmail.com>
+
+Data allocated with "__getname()" should always be free'd with "__putname()"
+because of the AUDITSYSCALL code.
+
+Signed-off-by: Davi Arnaut <davi.arnaut at gmail.com>
+Cc: Urban Widmark <urban at teststation.com>
+Signed-off-by: Andrew Morton <akpm at osdl.org>
+---
+
+ fs/smbfs/symlink.c | 4 ++--
+ 1 files changed, 2 insertions(+), 2 deletions(-)
+
+diff -puN fs/smbfs/symlink.c~smbfs-names_cache-memory-leak fs/smbfs/symlink.c
+--- devel/fs/smbfs/symlink.c~smbfs-names_cache-memory-leak 2005-11-04 21:44:55.000000000 -0800
++++ devel-akpm/fs/smbfs/symlink.c 2005-11-04 21:44:55.000000000 -0800
+@@ -45,7 +45,7 @@ static void *smb_follow_link(struct dent
+ int len = smb_proc_read_link(server_from_dentry(dentry),
+ dentry, link, PATH_MAX - 1);
+ if (len < 0) {
+- putname(link);
++ __putname(link);
+ link = ERR_PTR(len);
+ } else {
+ link[len] = 0;
+@@ -59,7 +59,7 @@ static void smb_put_link(struct dentry *
+ {
+ char *s = nd_get_link(nd);
+ if (!IS_ERR(s))
+- putname(s);
++ __putname(s);
+ }
+
+ struct inode_operations smb_link_inode_operations =
+_
================================================================
More information about the pld-cvs-commit
mailing list