Unverified Commit 6315de51 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!11689 smb: client: fix double put of @cfile in smb2_rename_path()

parents 9ed42d7b 99f42415
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1105,6 +1105,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);
	}