http://bugzilla.novell.com/show_bug.cgi?id=492282
User sjayaraman@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=492282#c11
Suresh Jayaraman changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #11 from Suresh Jayaraman 2009-04-17 10:03:28 MDT ---
The below patch committed to SLE11, SLES10 SP2, SP3.
Index: linux-2.6.27-SLE11_BRANCH/fs/cifs/connect.c
===================================================================
--- linux-2.6.27-SLE11_BRANCH.orig/fs/cifs/connect.c
+++ linux-2.6.27-SLE11_BRANCH/fs/cifs/connect.c
@@ -3549,16 +3549,12 @@ CIFSTCon(unsigned int xid, struct cifsSe
BCC(smb_buffer_response)) {
kfree(tcon->nativeFileSystem);
tcon->nativeFileSystem =
- kzalloc(length + 2, GFP_KERNEL);
+ kzalloc((4 * length) + 2, GFP_KERNEL);
if (tcon->nativeFileSystem)
cifs_strfromUCS_le(
tcon->nativeFileSystem,
(__le16 *) bcc_ptr,
length, nls_codepage);
- bcc_ptr += 2 * length;
- bcc_ptr[0] = 0; /* null terminate the string */
- bcc_ptr[1] = 0;
- bcc_ptr += 2;
}
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.