Message ID | 20241202232802.290935-8-vinicius.peixoto@canonical.com |
---|---|
State | New |
Headers | show |
Series | Azure: backport SMB lease key fixes | expand |
diff --git a/fs/smb/client/smb2inode.c b/fs/smb/client/smb2inode.c index 600cbd80c5a5..14b32f87af5c 100644 --- a/fs/smb/client/smb2inode.c +++ b/fs/smb/client/smb2inode.c @@ -945,6 +945,8 @@ int smb2_rename_path(const unsigned int xid, co, DELETE, SMB2_OP_RENAME, cfile, source_dentry); if (rc == -EINVAL) { cifs_dbg(FYI, "invalid lease key, resending request without lease"); + cifs_get_writable_path(tcon, from_name, + FIND_WR_WITH_DELETE, &cfile); rc = smb2_set_path_attr(xid, tcon, from_name, to_name, cifs_sb, co, DELETE, SMB2_OP_RENAME, cfile, NULL); }