Enzo Matsumiya 27893dfc12 cifs: fix small mempool leak in SMB2_negotiate()
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>
2022-08-30 20:08:13 -05:00
..
2021-06-20 21:28:17 -05:00
2022-08-05 11:24:17 -05:00
2022-01-19 11:21:08 -06:00
2022-05-23 20:24:12 -05:00
2019-01-24 09:37:33 -06:00
2022-06-16 18:07:10 -05:00
2021-04-25 16:28:23 -05:00