Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dpll: Add a check before kfree() to match the existing check before k…
…memdup() When src->freq_supported is not NULL but src->freq_supported_num is 0, dst->freq_supported is equal to src->freq_supported. In this case, if the subsequent kstrdup() fails, src->freq_supported may be freed without being set to NULL, potentially leading to a use-after-free or double-free error. Fixes: 830ead5 ("dpll: fix pin dump crash for rebound module") Cc: <stable@vger.kernel.org> # v6.8+ Signed-off-by: Jiasheng Jiang <jiashengjiangcool@gmail.com> Signed-off-by: NipaLocal <nipa@local>
- Loading branch information