From c19eb71020687e178b9fa564f4a8ac1880f87b10 Mon Sep 17 00:00:00 2001 From: Steve French Date: Fri, 24 Aug 2007 03:22:48 +0000 Subject: [PATCH] [CIFS] fix typo in previous Signed-off-by: Steve French --- fs/cifs/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/cifs/file.c b/fs/cifs/file.c index f9bd8b83f4..26fa50858a 100644 --- a/fs/cifs/file.c +++ b/fs/cifs/file.c @@ -767,7 +767,7 @@ int cifs_lock(struct file *file, int cmd, struct file_lock *pfLock) mutex_lock(&fid->lock_mutex); list_for_each_entry_safe(li, tmp, &fid->llist, llist) { if (pfLock->fl_start <= li->offset && - (pflock->fl_start + length) >= + (pfLock->fl_start + length) >= (li->offset + li->length)) { stored_rc = CIFSSMBLock(xid, pTcon, netfid, -- 2.39.5