diff options
author | Vasily Averin <vvs@parallels.com> | 2011-06-06 11:33:12 +0400 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2011-06-06 15:31:29 +0000 |
commit | 957df4535d06a8e009101239937ca5e50a6218c6 (patch) | |
tree | a61f7cd789b4b43e49ebd0751ecc56858a51e117 /fs/cifs/connect.c | |
parent | 5f0b23eeba2d9105944148e5a85b0bfb34a8ecf5 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index 84c730701c0..fb31c2c1bb1 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, struct smb_vol *vol) { char *value, *data, *end; - char *mountdata_copy, *options; + char *mountdata_copy = NULL, *options; unsigned int temp_len, i, j; char separator[2]; short int override_uid = -1; |