Skip to content

Commit ce47f74

Browse files
elfringsmfrench
authored andcommitted
smb: client: Use common code in cifs_do_create()
Use a label once more so that a bit of common code can be better reused at the end of this function implementation. Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> Acked-by: Enzo Matsumiya <ematsumiya@suse.de> Reviewed-by: David Howells <dhowells@redhat.com> Signed-off-by: Steve French <stfrench@microsoft.com>
1 parent e2080b7 commit ce47f74

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

fs/smb/client/dir.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,8 @@ static int cifs_do_create(struct inode *inode, struct dentry *direntry, unsigned
200200

201201
full_path = build_path_from_dentry(direntry, page);
202202
if (IS_ERR(full_path)) {
203-
free_dentry_path(page);
204-
return PTR_ERR(full_path);
203+
rc = PTR_ERR(full_path);
204+
goto out;
205205
}
206206

207207
/* If we're caching, we need to be able to fill in around partial writes. */

0 commit comments

Comments
 (0)