Skip to contentSkip to conversation

cifs: fix tcon leak in cifs_atomic_open error path

PATCH In review Ronnie Sahlberg 2 participants 2 messages Oct 29, 2017 – Oct 30, 2017 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cifs: fix tcon leak in cifs_atomic_open error path

---
 fs/cifs/dir.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/cifs/dir.c +1 -1
index 513ff2986c97..81ba6e0d88d8 100644
@@ -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

Reviewed-by
#2 lore raw
Quoted 10 lines · Ronnie Sahlberg
---
 fs/cifs/dir.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/cifs/dir.c +0 -0
index 513ff2986c97..81ba6e0d88d8 100644

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.