smb3: add credits we receive from oplock/break PDUs
authorRonnie Sahlberg <lsahlber@redhat.com>
Wed, 23 Jan 2019 06:20:38 +0000 (16:20 +1000)
committerSteve French <stfrench@microsoft.com>
Thu, 24 Jan 2019 20:52:06 +0000 (14:52 -0600)
commit2e5700bdde438ed708b36d8acd0398dc73cbf759
tree1c37b59481136a7e680368223f0126d7cce08208
parent6a9cbdd1ceca1dc2359ddf082efe61b97c3e752b
smb3: add credits we receive from oplock/break PDUs

Otherwise we gradually leak credits leading to potential
hung session.

Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
CC: Stable <stable@vger.kernel.org>
Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/smb2misc.c