Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;