]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
smb3: fix leak in "open on server" perf counter
authorSteve French <stfrench@microsoft.com>
Sun, 22 Sep 2019 05:55:46 +0000 (00:55 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 5 Oct 2019 11:14:12 +0000 (13:14 +0200)
commite2a5e040a63b6c4d4823c3c833e6d5e204774b61
treed81c02780762513abe4d11c8551f71830a77a542
parent79aeacfeebb5454cbd6714470214571559f75b21
smb3: fix leak in "open on server" perf counter

commit d2f15428d6a0ebfc0edc364094d7c4a2de7037ed upstream.

We were not bumping up the "open on server" (num_remote_opens)
counter (in some cases) on opens of the share root so
could end up showing as a negative value.

CC: Stable <stable@vger.kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/cifs/smb2ops.c
fs/cifs/smb2pdu.c