diff options
author | Colin Ian King <colin.king@canonical.com> | 2021-06-18 09:54:53 +0900 |
---|---|---|
committer | Namjae Jeon <namjae.jeon@samsung.com> | 2021-06-19 08:34:19 +0900 |
commit | 5fb68864674faa3e0a4fc767c4a87f51ece218c6 (patch) | |
tree | 4815c84818802d5e426b925dc3b14b65321375a3 /fs/cifsd/server.c | |
parent | 99f45259fe121a10881f486e075019260f403b6a (diff) | |
download | lwn-5fb68864674faa3e0a4fc767c4a87f51ece218c6.tar.gz lwn-5fb68864674faa3e0a4fc767c4a87f51ece218c6.zip |
ksmbd: fix kfree of uninitialized pointer oid
Currently function ksmbd_neg_token_init_mech_type can kfree an
uninitialized pointer oid when the call to asn1_oid_decode fails when
vlen is out of range. All the other failure cases in function
asn1_oid_decode set *oid to NULL on an error, so fix the issue by
ensuring the vlen out of range error also nullifies the pointer.
Addresses-Coverity: ("Uninitialized pointer read")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifsd/server.c')
0 files changed, 0 insertions, 0 deletions