Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6b70c955 authored by Steve French's avatar Steve French
Browse files

[CIFS] New POSIX locking code not setting rc properly to zero on successful


unlock in case where server does not support POSIX locks and nobrl is
not specified.

Signed-off-by: default avatarSteve French <sfrench@us.ibm.com>
parent 2fe87f02
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -752,6 +752,7 @@ int cifs_lock(struct file *file, int cmd, struct file_lock *pfLock)
			int stored_rc = 0;
			struct cifsLockInfo *li, *tmp;

			rc = 0;
			down(&fid->lock_sem);
			list_for_each_entry_safe(li, tmp, &fid->llist, llist) {
				if (pfLock->fl_start <= li->offset &&