Use LIST_FOREACH_SAFE to avoid a use-after-free in scmi_reqs_pool_free.
The next pointer will be invalid after the call to free meaning
LIST_FOREACH will dereference a freed struct to move to the next item.
Sponsored by: Arm Ltd
Differential D50753
scmi: Avoid a use-after-free andrew on Mon, Jun 9, 3:47 PM. Authored by Tags None Referenced Files
Details
Use LIST_FOREACH_SAFE to avoid a use-after-free in scmi_reqs_pool_free. Sponsored by: Arm Ltd
Diff Detail
Event TimelineComment Actions LGTM with two little notes: Commit message cut off
Also it seems we generally have unique names for the field and tvar (I spotted one existing duplicate case, in uath_txfrag_setup) |