Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 280a92b9 authored by Mahesh Sivasubramanian's avatar Mahesh Sivasubramanian Committed by Bernhard Thoben
Browse files

drivers: cpuidle: lpm-levels: Fix untrusted pointer dereference.



The list_for_each macro was not used correctly, where the intermediate
variable would be LIST_POISON, resulting in a untrusted pointer
dereference. Switch to using list_for_each_entry_safe to for safe
removal of a list entry.

Bug: 72956998
Change-Id: I0e0fd5dd9f251b5093d6e9d6335387512ec59249
Signed-off-by: default avatarMahesh Sivasubramanian <msivasub@codeaurora.org>
(cherry picked from commit aeb0104f34e66518ddebd3360c75b3a98af0df8d)
parent 1d4bc242
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment