CIFS: Fix a memory leak when a lease break comes
authorPavel Shilovsky <pshilovsky@samba.org>
Thu, 5 Sep 2013 11:04:04 +0000 (15:04 +0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Sep 2013 00:18:04 +0000 (17:18 -0700)
commitaf66f40c4cb1d31b3b403d5f9a8471261a0cc945
tree4044644ccb0e9747ccbfa7d1ea672be100dfe93a
parent9b8ace6745bf4722ff9c48089f5b0723478a849b
CIFS: Fix a memory leak when a lease break comes

commit 1a05096de82f3cd672c76389f63964952678506f upstream.

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.

Signed-off-by: Pavel Shilovsky <pshilovsky@samba.org>
Signed-off-by: Steve French <smfrench@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/cifs/smb2misc.c