George Prekas db7fbf492d scripts/gdb: fix list_for_each
If the list is uninitialized (next pointer is NULL), list_for_each gets
stuck in an infinite loop. Print a message and treat list as empty.

Link: https://lkml.kernel.org/r/4ae23bb1-c333-f669-da2d-fa35c4f49018@amazon.com
Signed-off-by: George Prekas <prekageo@amazon.com>
Reviewed-by: Jan Kiszka <jan.kiszka@siemens.com>
Cc: Kieran Bingham <kbingham@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2021-02-26 09:41:05 -08:00
..
2021-02-12 19:23:39 -06:00
2021-02-26 09:41:05 -08:00
2021-02-24 10:25:37 -08:00
2020-12-08 23:30:04 +09:00
2020-12-08 23:30:04 +09:00
2021-02-01 10:37:19 +09:00
2021-02-22 08:22:04 +09:00
2021-02-23 12:46:57 -08:00
2021-02-25 10:17:31 -08:00
2020-10-22 13:13:57 -07:00
2021-02-25 10:17:31 -08:00
2021-02-23 10:15:33 -08:00
2020-12-08 23:30:04 +09:00
2021-01-27 14:50:12 +01:00
2021-02-01 17:17:14 -07:00
2020-12-08 23:30:04 +09:00