Skip to content

Commit a065811

Browse files
committed
ksmbd: fix bug on trap from locks_release_private
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
1 parent 2dd2b22 commit a065811

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

smb2pdu.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -8069,7 +8069,7 @@ int smb2_lock(struct ksmbd_work *work)
80698069
retry:
80708070
rc = vfs_lock_file(filp, smb_lock->cmd, flock, NULL);
80718071
skip:
8072-
if (flags & SMB2_LOCKFLAG_UNLOCK) {
8072+
if (smb_lock->flags & SMB2_LOCKFLAG_UNLOCK) {
80738073
if (!rc) {
80748074
ksmbd_debug(SMB, "File unlocked\n");
80758075
} else if (rc == -ENOENT) {

0 commit comments

Comments
 (0)