aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/connect.c
diff options
context:
space:
mode:
authorVasily Averin <vvs@parallels.com>2011-06-06 03:33:12 -0400
committerSteve French <sfrench@us.ibm.com>2011-06-06 11:31:29 -0400
commit957df4535d06a8e009101239937ca5e50a6218c6 (patch)
treea61f7cd789b4b43e49ebd0751ecc56858a51e117 /fs/cifs/connect.c
parent5f0b23eeba2d9105944148e5a85b0bfb34a8ecf5 (diff)
possible memory corruption in cifs_parse_mount_options()
error path after mountdata check frees uninitialized mountdata_copy Signed-off-by: Vasily Averin <vvs@sw.ru> Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/connect.c')
-rw-r--r--fs/cifs/connect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c
index 84c730701c09..fb31c2c1bb17 100644
--- a/fs/cifs/connect.c
+++ b/fs/cifs/connect.c
@@ -784,7 +784,7 @@ cifs_parse_mount_options(const char *mountdata, const char *devname,
784 struct smb_vol *vol) 784 struct smb_vol *vol)
785{ 785{
786 char *value, *data, *end; 786 char *value, *data, *end;
787 char *mountdata_copy, *options; 787 char *mountdata_copy = NULL, *options;
788 unsigned int temp_len, i, j; 788 unsigned int temp_len, i, j;
789 char separator[2]; 789 char separator[2];
790 short int override_uid = -1; 790 short int override_uid = -1;