[CIFS] possible memory corruption on mount
authorSteve French <sfrench@us.ibm.com>
Thu, 18 Aug 2011 04:41:55 +0000 (04:41 +0000)
committerSteve French <sfrench@us.ibm.com>
Thu, 18 Aug 2011 16:53:02 +0000 (16:53 +0000)
commit13589c437daf4c8e429b3236c0b923de1c9420d8
treede72b74d9214b3ee04a6dcc7df934c29b3eed305
parentfa71f447065f676157ba6a2c121ba419818fc559
[CIFS] possible memory corruption on mount

CIFS cleanup_volume_info_contents() looks like having a memory
corruption problem.
When UNCip is set to "&vol->UNC[2]" in cifs_parse_mount_options(), it
should not be kfree()-ed in cleanup_volume_info_contents().

Introduced in commit b946845a9dc523c759cae2b6a0f6827486c3221a

Signed-off-by: J.R. Okajima <hooanon05@yahoo.co.jp>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
CC: Stable <stable@kernel.org>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/connect.c