diff options
author | Abhishek Singh Tomar <abhishek@linux.ibm.com> | 2024-06-14 13:16:01 +0530 |
---|---|---|
committer | Reza Arbab <arbab@linux.ibm.com> | 2024-08-02 08:48:56 -0500 |
commit | a9830fc341ebe6f1869dda6173f71ffdd2b7e3ec (patch) | |
tree | a955784a3f71c83550faa8c63bfc5eea9fcf9a30 /hw/xscom.c | |
parent | 6d1fb19ef16a26f2ca4741a1566bd5e665e85007 (diff) | |
download | skiboot-a9830fc341ebe6f1869dda6173f71ffdd2b7e3ec.zip skiboot-a9830fc341ebe6f1869dda6173f71ffdd2b7e3ec.tar.gz skiboot-a9830fc341ebe6f1869dda6173f71ffdd2b7e3ec.tar.bz2 |
core/pldm: Fix dangling point issue
When calling pldm_platform_init() and the GET_PDR PLDM
request fails, the 'pdrs_repo' global variable is freed
but becomes a dangling pointer. Subsequent calls to
pldm_platform_init will lead to an invalid read.
==28652== Invalid read of size 8
==28652== at 0x40A4C8: pldm_pdr_destroy (pdr.c:130)
==28652== by 0x424BA3: pdr_init_complete (pldm-platform-requests.c:42)
==28652== by 0x4274DA: pldm_platform_load_pdrs (pldm-platform-requests.c:1170)
==28652== by 0x42759C: pdrs_init (pldm-platform-requests.c:1190)
==28652== by 0x427703: pldm_platform_init (pldm-platform-requests.c:1221)
Signed-off-by: Abhishek Singh Tomar <abhishek@linux.ibm.com>
Signed-off-by: Reza Arbab <arbab@linux.ibm.com>
Diffstat (limited to 'hw/xscom.c')
0 files changed, 0 insertions, 0 deletions