Skip to content

Commit

Permalink
[CIFS] Fix memory leak in statfs to very old servers
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Steve French committed Sep 28, 2007
1 parent 6587400 commit 407f61a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 5 additions & 0 deletions fs/cifs/CHANGES
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 0 additions & 4 deletions fs/cifs/cifssmb.c
Original file line number Diff line number Diff line change
Expand Up @@ -4045,10 +4045,6 @@ SMBOldQFSInfo(const int xid, struct cifsTconInfo *tcon, struct kstatfs *FSData)
(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;
Expand Down

0 comments on commit 407f61a

Please sign in to comment.