Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 407f61a2 authored by Steve French's avatar Steve French
Browse files

[CIFS] Fix memory leak in statfs to very old servers



We were allocating request buffers twice in the statfs
path when mounted to very old (Windows 9x) servers.

Signed-off-by: default avatarSteve French <sfrench@us.ibm.com>
parent 65874007
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
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
+0 −4
Original line number Diff line number Diff line
@@ -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;