From: Sean Finney Date: Mon, 11 Apr 2011 13:19:32 +0000 (+0000) Subject: cifs: cifs_parse_mount_options: do not tokenize mount options in-place X-Git-Tag: v3.0-rc1~380^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b946845a9dc523c759cae2b6a0f6827486c3221a;p=pandora-kernel.git cifs: cifs_parse_mount_options: do not tokenize mount options in-place To keep strings passed to cifs_parse_mount_options re-usable (which is needed to clean up the DFS referral handling), tokenize a copy of the mount options instead. If values are needed from this tokenized string, they too must be duplicated (previously, some options were copied and others duplicated). Since we are not on the critical path and any cleanup is relatively easy, the extra memory usage shouldn't be a problem (and it is a bit simpler than trying to implement something smarter). Reviewed-by: Jeff Layton Signed-off-by: Sean Finney Signed-off-by: Pavel Shilovsky Signed-off-by: Steve French --- Reading git-diff-tree failed