]> nv-tegra.nvidia Code Review - linux-2.6.git/commitdiff
[CIFS] Fix memory leak in statfs to very old servers
authorSteve French <sfrench@us.ibm.com>
Fri, 28 Sep 2007 06:53:39 +0000 (06:53 +0000)
committerSteve French <sfrench@us.ibm.com>
Fri, 28 Sep 2007 06:53:39 +0000 (06:53 +0000)
We were allocating request buffers twice in the statfs
path when mounted to very old (Windows 9x) servers.

Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/CHANGES
fs/cifs/cifssmb.c

index 41e3b6a9397ceecd1bf56f409165ea27242da553..ea359a0038d92c13e8c105ab607deb0dba02724c 100644 (file)
@@ -1,3 +1,8 @@
+Version 1.51
+------------
+Fix memory leak in statfs when mounted to very old servers (e.g.
+Windows 9x)
+
 Version 1.50
 ------------
 Fix NTLMv2 signing. NFS server mounted over cifs works (if cifs mount is
index cc05a26ab07a63acd012ebecf5f89b73106d0ebf..a6ff324bc135dd9ad1aeb7fc38c3ac2eb3141ef0 100644 (file)
@@ -4045,10 +4045,6 @@ oldQFSInfoRetry:
                (void **) &pSMBr);
        if (rc)
                return rc;
-       rc = smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB,
-                     (void **) &pSMBr);
-       if (rc)
-               return rc;
 
        params = 2;     /* level */
        pSMB->TotalDataCount = 0;