aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/timerlist.py
diff options
context:
space:
mode:
authorHarshvardhan Jha <[email protected]>2021-07-08 13:16:42 +0530
committerMartin K. Petersen <[email protected]>2021-07-28 23:29:09 -0400
commit77541f78eadfe9fdb018a7b8b69f0f2af2cf4b82 (patch)
tree9ecd57ea025a3d4f4405df2b9d8f2e0d0ac02558 /scripts/gdb/linux/timerlist.py
parentd712d3fb484b7fa8d1d57e9ca6f134bb9d8c18b1 (diff)
scsi: megaraid_mm: Fix end of loop tests for list_for_each_entry()
The list_for_each_entry() iterator, "adapter" in this code, can never be NULL. If we exit the loop without finding the correct adapter then "adapter" points invalid memory that is an offset from the list head. This will eventually lead to memory corruption and presumably a kernel crash. Link: https://lore.kernel.org/r/[email protected] Acked-by: Sumit Saxena <[email protected]> Signed-off-by: Harshvardhan Jha <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/timerlist.py')
0 files changed, 0 insertions, 0 deletions