Skip to content

Commit

Permalink
[CIFS] Set correct lock type on new posix unlock call
Browse files Browse the repository at this point in the history
Signed-off-by: Steve French <sfrench@us.ibm.com>
  • Loading branch information
Steve French committed Mar 3, 2006
1 parent c6ee60b commit beb84dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/cifs/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit beb84dc

Please sign in to comment.