Commit 9f990d7
committed
smb: client: fix double put of @CFILE in smb2_rename_path()
JIRA: https://issues.redhat.com/browse/RHEL-57983
commit 3523a3d
Author: Paulo Alcantara <pc@manguebit.com>
Date: Tue Sep 3 10:53:23 2024 -0300
smb: client: fix double put of @CFILE in smb2_rename_path()
If smb2_set_path_attr() is called with a valid @CFILE and returned
-EINVAL, we need to call cifs_get_writable_path() again as the
reference of @CFILE was already dropped by previous smb2_compound_op()
call.
Fixes: 71f15c9 ("smb: client: retry compound request without reusing lease")
Signed-off-by: Paulo Alcantara (Red Hat) <pc@manguebit.com>
Cc: David Howells <dhowells@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Paulo Alcantara <paalcant@redhat.com>1 parent 2c980b2 commit 9f990d7
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1106 | 1106 | | |
1107 | 1107 | | |
1108 | 1108 | | |
| 1109 | + | |
| 1110 | + | |
1109 | 1111 | | |
1110 | 1112 | | |
1111 | 1113 | | |
| |||
0 commit comments