cifs: fix tcon leak in cifs_atomic_open error path
Subsystems (2)
PATCH 1/1 cifs: fix tcon leak in cifs_atomic_open error path
Signed-off-by Ronnie Sahlberg <[email protected]>
--- fs/cifs/dir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/cifs/dir.c +1 -1
@@ -521,7 +521,7 @@ cifs_atomic_open(struct inode *inode, struct dentry *direntry, rc =check_name (direntry, tcon);if (rc) - goto out_free_xid; + goto out; server = tcon->ses->server;
Signature · 1 line
2.13.3
A message that is not in the archive (sent off-list or not yet received): 20171029235711.13743-1-lsahlber-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org
David Disseldorp
Reviewed-byQuoted 10 lines · Ronnie Sahlberg
Signed-off-by Ronnie Sahlberg <[email protected]>--- fs/cifs/dir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)fs/cifs/dir.c +0
-0
fs/cifs/dir.c cifs_atomic_open(struct inode *inode, struct dentry *direntry, · line 526
Quoted 7 lines
fs/cifs/dir.c +1
-1@@ -521,7 +521,7 @@ cifs_atomic_open(struct inode *inode, struct dentry *direntry, rc =check_name (direntry, tcon);if (rc) - goto out_free_xid; + goto out; server = tcon->ses->server;
Looks good.
Reviewed-by David Disseldorp <[email protected]>