From cce100f0b5969e1431881b1af3feedac44de4653 Mon Sep 17 00:00:00 2001 From: Wilhansen Li Date: Fri, 30 Dec 2016 12:25:34 +0800 Subject: [PATCH] Fix bug in original insertion sort code. --- dtbTool.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dtbTool.c b/dtbTool.c index 680019b..385a03e 100644 --- a/dtbTool.c +++ b/dtbTool.c @@ -204,6 +204,7 @@ int chip_add(struct chipInfo_t *c) } else { c->next = x; c->prev = x->prev; + x->prev->next = c; x->prev = c; break; } -- 2.20.1