dect
/
linux-2.6
Archived
13
0
Fork 0

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>
This commit is contained in:
Vasily Averin 2011-06-06 11:33:12 +04:00 committed by Steve French
parent 5f0b23eeba
commit 957df4535d
1 changed files with 1 additions and 1 deletions

View File

@ -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;