summaryrefslogtreecommitdiff
path: root/fs/cifs/readdir.c
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2012-12-13 11:02:51 (GMT)
committerSteve French <sfrench@us.ibm.com>2012-12-20 17:27:16 (GMT)
commit8367224b2e90eb716dc54f3d83cd73b7efb2ea30 (patch)
treeec9990e14663cd4416e44c633f55d23a86f56717 /fs/cifs/readdir.c
parent1800098549fc310cffffefdcb3722adaad0edda8 (diff)
downloadlinux-8367224b2e90eb716dc54f3d83cd73b7efb2ea30.tar.xz
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 <dan.carpenter@oracle.com> Signed-off-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/cifs/readdir.c')
0 files changed, 0 insertions, 0 deletions