m3dev

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 085dfc2a176e6f1ebb172e9605b637791664750f
parent 7bf16aa8a508712b8bc68f50bacaf4cea71db5af
Author: Brian Swetland <swetland@frotz.net>
Date:   Mon, 13 Jul 2015 16:11:36 -0700

lkdebug: don't crash on nonexistent current thread

Diffstat:
Mtools/lkdebug.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/tools/lkdebug.c b/tools/lkdebug.c @@ -169,6 +169,7 @@ lkthread_t *find_lk_threads(int verbose) { } if (swdp_ahb_read(di.current_thread_ptr, &x)) goto fail; current = read_lk_thread(&di, x, 1); + if (current == NULL) goto fail; rtp = di.thread_list_ptr; for (;;) { if (swdp_ahb_read(rtp + LIST_OFF_NEXT, &rtp)) goto fail;