Skip to contentSkip to conversation

smb: client: Use common code in cifs_do_create()

PATCH New Markus Elfring 1 participant 1 message Oct 5, 2025

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

PATCH 1/1 smb: client: Use common code in cifs_do_create()

From: Markus Elfring <[email protected]>
Date: Sun, 5 Oct 2025 20:36:33 +0200

Use a label once more so that a bit of common code can be better reused at the end of this function implementation.

---
 fs/smb/client/dir.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
fs/smb/client/dir.c +2 -2
index fc67a6441c96..6aa8740c2932 100644
@@ -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. */
Signature · 1 line
2.51.0