diff options
Diffstat (limited to 'fs/cifs/file.c')
-rw-r--r-- | fs/cifs/file.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/fs/cifs/file.c b/fs/cifs/file.c index 99897e3562a7..2ba4c41be972 100644 --- a/fs/cifs/file.c +++ b/fs/cifs/file.c | |||
@@ -922,9 +922,10 @@ int cifs_lock(struct file *file, int cmd, struct file_lock *pfLock) | |||
922 | 1, 0, li->type, false); | 922 | 1, 0, li->type, false); |
923 | if (stored_rc) | 923 | if (stored_rc) |
924 | rc = stored_rc; | 924 | rc = stored_rc; |
925 | 925 | else { | |
926 | list_del(&li->llist); | 926 | list_del(&li->llist); |
927 | kfree(li); | 927 | kfree(li); |
928 | } | ||
928 | } | 929 | } |
929 | } | 930 | } |
930 | mutex_unlock(&fid->lock_mutex); | 931 | mutex_unlock(&fid->lock_mutex); |