]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit0964c9f839b4eeffe135236787fe2129bbe649df
treede72b74d9214b3ee04a6dcc7df934c29b3eed305
parent4f770e5ffe790b91dd25cb50ea8a77aab6970b42
[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 f80ee982b800ca3eca693111c1ca489fcca8c1de

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