commit | e4f07608beb0ea2a4732c202e174845e6d1b0b9f | [log] [tgz] |
---|---|---|
author | Jacky Chou <jacky_chou@aspeedtech.com> | Fri Dec 29 09:45:55 2023 +0800 |
committer | Tom Rini <trini@konsulko.com> | Tue Mar 26 19:58:26 2024 -0400 |
tree | 79f8c56d6ffef80d1f082b8442ce977dfdea5fc9 | |
parent | 98c9212fab24b104aa61125b7e488781f0bf7385 [diff] |
net: phy: ncsi: fixed not nullify the pointers after free The issue occurs the UAF (use-after-free) to cause double free when do the realloc function for the pointers during the reinitialization NC-SI process, and it will cause the memory management occurs error. So, nullify these pointers after free. Signed-off-by: Jacky Chou <jacky_chou@aspeedtech.com>