From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Disseldorp Subject: Re: [PATCH] cifs: fix tcon leak in cifs_atomic_open error path Date: Mon, 30 Oct 2017 01:14:19 +0100 Message-ID: <20171030011419.272af60e@suse.de> References: <20171029235711.13743-1-lsahlber@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: linux-cifs , Steve French To: Ronnie Sahlberg Return-path: In-Reply-To: <20171029235711.13743-1-lsahlber-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> Sender: linux-cifs-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: On Mon, 30 Oct 2017 10:57:11 +1100, Ronnie Sahlberg wrote: > Signed-off-by: Ronnie Sahlberg > --- > fs/cifs/dir.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/fs/cifs/dir.c b/fs/cifs/dir.c > index 513ff2986c97..81ba6e0d88d8 100644 > --- a/fs/cifs/dir.c > +++ b/fs/cifs/dir.c > @@ -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