Skip to content
Snippets Groups Projects
Commit bcf6f5ee authored by Sarangdhar Joshi's avatar Sarangdhar Joshi
Browse files

lrdpv2: Fix an infinite loop while iterating RT data structure

Ram dump parser compares RT data structure list head location
with first element in the list to determine whether list is
empty. However it never checks for cycle in the list and runs
forever in cases where cycle exists in the list. Fix this by
tracking the elements seen and break the loop when cycle is
found.

Change-Id: I971c59b81bf340eddff6c8225aebb163af20aba8
parent 5b2c241b
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment