diff options
author | Linux Build Service Account <lnxbuild@localhost> | 2023-09-05 11:29:20 -0700 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2023-09-05 11:29:14 -0700 |
commit | cb118324aad84e38027a3ab4b947b91274ff2ec0 (patch) | |
tree | f3c57ec1b3fa9a931358f6c5f498e67f63fc2f9c | |
parent | d9c2df9283791e54179591ae7d9b4445200412d7 (diff) | |
parent | ba5e8087ef4ead484e99b369fc1fdcffa54db1d1 (diff) |
Merge "q6core: Avoid OOB access in q6core"
-rw-r--r-- | sound/soc/msm/qdsp6v2/q6core.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/soc/msm/qdsp6v2/q6core.c b/sound/soc/msm/qdsp6v2/q6core.c index 7ac3dcf6281a..a0ecc1ce277c 100644 --- a/sound/soc/msm/qdsp6v2/q6core.c +++ b/sound/soc/msm/qdsp6v2/q6core.c @@ -1,4 +1,5 @@ /* Copyright (c) 2012-2019, The Linux Foundation. All rights reserved. + * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and @@ -87,7 +88,7 @@ static struct generic_get_data_ *generic_get_data; static int parse_fwk_version_info(uint32_t *payload, uint16_t payload_size) { size_t ver_size; - int num_services; + uint16_t num_services; pr_debug("%s: Payload info num services %d\n", __func__, payload[4]); |