From: Chuck Lever Date: Wed, 16 Jan 2008 21:38:10 +0000 (-0500) Subject: NFS: Address memory leaks in the NFS client mount option parser X-Git-Tag: v2.6.25-rc1~1146^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fc6014771bde8a215a9a4ea24b45f76afeb3c922;p=pandora-kernel.git NFS: Address memory leaks in the NFS client mount option parser David Howells noticed that repeating the same mount option twice during an NFS mount request can result in orphaned memory in certain cases. Only the client_address and mount_server.hostname strings are initialized in the mount parsing loop, so those appear to be the only two pointers that might be written over by repeating a mount option. The strings in the nfs_server section of the nfs_parsed_mount_data structure are set only once after the options are parsed, thus these are not susceptible to being overwritten. Signed-off-by: Chuck Lever Signed-off-by: Trond Myklebust --- Reading git-diff-tree failed