From: Jeff Layton Date: Thu, 13 Dec 2012 11:02:51 +0000 (-0500) Subject: cifs: fix double-free of "string" in cifs_parse_mount_options X-Git-Tag: v3.8-rc1~2^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8367224b2e90eb716dc54f3d83cd73b7efb2ea30;p=pandora-kernel.git cifs: fix double-free of "string" in cifs_parse_mount_options Dan reported the following regression in commit d387a5c5: + fs/cifs/connect.c:1903 cifs_parse_mount_options() error: double free of 'string' That patch has some of the new option parsing code free "string" without setting the variable to NULL afterward. Since "string" is automatically freed in an error condition, fix the code to just rely on that instead of freeing it explicitly. Reported-by: Dan Carpenter Signed-off-by: Jeff Layton Signed-off-by: Steve French --- Reading git-diff-tree failed