summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Shilovsky <pshilovsky@samba.org>2013-09-05 15:04:04 +0400
committerSteve French <smfrench@gmail.com>2013-09-08 14:41:40 -0500
commit1a05096de82f3cd672c76389f63964952678506f (patch)
treecd9ad14c597683148767a56424a53ffc3550cfcc
parentd49ffb0e48f24a11c326ca5eff8abaa27732f1f2 (diff)
CIFS: Fix a memory leak when a lease break comes
This happens when we receive a lease break from a server, then find an appropriate lease key in opened files and schedule the oplock_break slow work. lw pointer isn't freed in this case. Cc: <stable@vger.kernel.org> Signed-off-by: Pavel Shilovsky <pshilovsky@samba.org> Signed-off-by: Steve French <smfrench@gmail.com>
-rw-r--r--fs/cifs/smb2misc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/cifs/smb2misc.c b/fs/cifs/smb2misc.c
index 6103359fb59..38c93c305c9 100644
--- a/fs/cifs/smb2misc.c
+++ b/fs/cifs/smb2misc.c
@@ -477,6 +477,7 @@ smb2_is_valid_lease_break(char *buffer, struct TCP_Server_Info *server)
queue_work(cifsiod_wq, &cfile->oplock_break);
+ kfree(lw);
spin_unlock(&cifs_file_list_lock);
spin_unlock(&cifs_tcp_ses_lock);
return true;