Commit 957df453 authored by Vasily Averin's avatar Vasily Averin Committed by Steve French

possible memory corruption in cifs_parse_mount_options()

error path after mountdata check frees uninitialized mountdata_copy
Signed-off-by: default avatarVasily Averin <vvs@sw.ru>
Signed-off-by: default avatarSteve French <sfrench@us.ibm.com>
parent 5f0b23ee
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment