forked from Imagelibrary/rtems
rtems-fdt/rtems-fdt.c: Fix bug in loop termination
The while loop, loops infinitely in case of raw FDT data. The loop condition (size) is not modified during iterations. Fixes #4350
This commit is contained in:
committed by
Christian Mauderer
parent
3a66586c9e
commit
08f807e64a
@@ -582,7 +582,7 @@ rtems_fdt_load (const char* filename, rtems_fdt_handle* handle)
|
|||||||
close (bf);
|
close (bf);
|
||||||
return -RTEMS_FDT_ERR_READ_FAIL;
|
return -RTEMS_FDT_ERR_READ_FAIL;
|
||||||
}
|
}
|
||||||
r -= size;
|
size -= r;
|
||||||
buf += r;
|
buf += r;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user