summaryrefslogtreecommitdiff
path: root/fs/cifs/cifs_dfs_ref.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2013-01-25 07:15:43 +0400
committerLinus Torvalds <torvalds@linux-foundation.org>2013-01-25 07:15:43 +0400
commit66e2d3e8c2294543a6f0453d974940171829e7dd (patch)
tree81944e46052c3f009150888966f4fcfd65630c08 /fs/cifs/cifs_dfs_ref.c
parentd93816a63c2b23607ffc318a8addbd54242956c7 (diff)
parent10b8c7dff5d3633b69e77f57d404dab54ead3787 (diff)
downloadlinux-66e2d3e8c2294543a6f0453d974940171829e7dd.tar.xz
Merge branch 'for-next' of git://git.samba.org/sfrench/cifs-2.6
Pull cifs fixes from Steve French: "Two small cifs fixes" * 'for-next' of git://git.samba.org/sfrench/cifs-2.6: fs/cifs/cifs_dfs_ref.c: fix potential memory leakage cifs: fix srcip_matches() for ipv6
Diffstat (limited to 'fs/cifs/cifs_dfs_ref.c')
-rw-r--r--fs/cifs/cifs_dfs_ref.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/cifs/cifs_dfs_ref.c b/fs/cifs/cifs_dfs_ref.c
index ce5cbd717bfc..210fce2df308 100644
--- a/fs/cifs/cifs_dfs_ref.c
+++ b/fs/cifs/cifs_dfs_ref.c
@@ -226,6 +226,8 @@ compose_mount_options_out:
compose_mount_options_err:
kfree(mountdata);
mountdata = ERR_PTR(rc);
+ kfree(*devname);
+ *devname = NULL;
goto compose_mount_options_out;
}