Index: kernel/generic/src/console/kconsole.c
===================================================================
--- kernel/generic/src/console/kconsole.c	(revision 28a5ebdea900783081bd23e40f685b6b0479c63d)
+++ kernel/generic/src/console/kconsole.c	(revision 83d665a6c564fb1cf94a2bcfdbf48c7cc690b8a7)
@@ -172,7 +172,7 @@
 
 	if (*startpos == NULL)
-		*startpos = cmd_list.head.next;
-
-	for (; *startpos != &cmd_list.head; *startpos = (*startpos)->next) {
+		*startpos = list_first(&cmd_list);
+
+	for (; *startpos != NULL; *startpos = list_next(*startpos, &cmd_list)) {
 		cmd_info_t *hlp = list_get_instance(*startpos, cmd_info_t, link);
 
@@ -182,5 +182,5 @@
 
 		if (str_lcmp(curname, name, namelen) == 0) {
-			*startpos = (*startpos)->next;
+			*startpos = list_next(*startpos, &cmd_list);
 			if (h)
 				*h = hlp->description;
