summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2025-10-05 20:36:33 +0200
committerSteve French <stfrench@microsoft.com>2025-10-07 13:31:27 -0500
commitce47f7498598f4cf8729a6b93722c98814385e78 (patch)
tree8c00323ab2379011329dc40a15521f5e3768acbe
parente2080b70c5851a132547bec3bd7dde847e649678 (diff)
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>
-rw-r--r--fs/smb/client/dir.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/smb/client/dir.c b/fs/smb/client/dir.c
index f64e992ec724..da5597dbf5b9 100644
--- a/fs/smb/client/dir.c
+++ b/fs/smb/client/dir.c
@@ -200,8 +200,8 @@ static int cifs_do_create(struct inode *inode, struct dentry *direntry, unsigned
full_path = build_path_from_dentry(direntry, page);
if (IS_ERR(full_path)) {
- free_dentry_path(page);
- return PTR_ERR(full_path);
+ rc = PTR_ERR(full_path);
+ goto out;
}
/* If we're caching, we need to be able to fill in around partial writes. */