[CIFS] Set correct lock type on new posix unlock call

Signed-off-by: Steve French <sfrench@us.ibm.com>
This commit is contained in:
Steve French 2006-03-03 23:36:34 +00:00
parent c6ee60b7c8
commit beb84dc818
1 changed files with 1 additions and 1 deletions

View File

@ -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 */