mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-19 02:16:48 +07:00
[CIFS] Set correct lock type on new posix unlock call
Signed-off-by: Steve French <sfrench@us.ibm.com>
This commit is contained in:
parent
c6ee60b7c8
commit
beb84dc818
@ -698,7 +698,7 @@ int cifs_lock(struct file *file, int cmd, struct file_lock *pfLock)
|
||||
posix_lock_type = CIFS_WRLCK;
|
||||
|
||||
if(numUnlock == 1)
|
||||
posix_lock_type |= CIFS_UNLCK;
|
||||
posix_lock_type = CIFS_UNLCK;
|
||||
else if(numLock == 0) {
|
||||
/* if no lock or unlock then nothing
|
||||
to do since we do not know what it is */
|
||||
|
Loading…
Reference in New Issue
Block a user