Skip to content

Commit 42980df

Browse files
boeckmannPerditionC
authored andcommitted
fix list traversal bug in update_dcb()
This caused the kernel to hang when loading NETDRIVE.SYS
1 parent ed2fd81 commit 42980df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ STATIC VOID update_dcb(struct dhdr FAR * dhp)
567567
{
568568
struct dpb FAR *tmp_dpb;
569569
/* find current end of dpb chain by following next pointers to end */
570-
for (tmp_dpb = LoL->DPBp; (ULONG) tmp_dpb->dpb_next != 0xffffffffl; tmp_dpb = dpb->dpb_next)
570+
for (tmp_dpb = LoL->DPBp; (ULONG) tmp_dpb->dpb_next != 0xffffffffl; tmp_dpb = tmp_dpb->dpb_next)
571571
;
572572
/* insert into chain [at end] */
573573
tmp_dpb->dpb_next = dpb;

0 commit comments

Comments
 (0)