diff options
author | Enzo Matsumiya <ematsumiya@suse.de> | 2022-08-30 19:51:51 -0300 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2022-08-30 20:08:13 -0500 |
commit | 27893dfc1285f80f80f46b3b8c95f5d15d2e66d0 (patch) | |
tree | 97ad5a5c14194969ac11668c55ed0e1754ba3eed /drivers/net/wwan/iosm/iosm_ipc_protocol.c | |
parent | 3e3761f1ec7df67d88cfca5e2ea98538f529e645 (diff) |
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>
Diffstat (limited to 'drivers/net/wwan/iosm/iosm_ipc_protocol.c')
0 files changed, 0 insertions, 0 deletions