CIFS: Fix missing lease break
authorPavel Shilovsky <pshilovsky@samba.org>
Thu, 5 Sep 2013 11:00:07 +0000 (15:00 +0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Sep 2013 00:18:05 +0000 (17:18 -0700)
commitb08d9b572074b3d0899349070bb61688ad6eb630
tree43c1a0e91c273349b80bacc7f6156726291a2d72
parentaf66f40c4cb1d31b3b403d5f9a8471261a0cc945
CIFS: Fix missing lease break

commit 933d4b36576c951d0371bbfed05ec0135d516a6e upstream.

If a server sends a lease break to a connection that doesn't have
opens with a lease key specified in the server response, we can't
find an open file to send an ack. Fix this by walking through
all connections we have.

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