Enzo Matsumiya 9e3c9efa7c cifs: fix small mempool leak in SMB2_negotiate()
commit 27893dfc1285f80f80f46b3b8c95f5d15d2e66d0 upstream.

In some cases of failure (dialect mismatches) in SMB2_negotiate(), after
the request is sent, the checks would return -EIO when they should be
rather setting rc = -EIO and jumping to neg_exit to free the response
buffer from mempool.

Signed-off-by: Enzo Matsumiya <ematsumiya@suse.de>
Cc: stable@vger.kernel.org
Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-09-08 12:28:04 +02:00
..
2021-06-20 21:28:17 -05:00
2020-06-01 00:10:18 -05:00
2022-02-23 12:03:14 +01:00
2019-01-24 09:37:33 -06:00
2021-04-25 16:28:23 -05:00