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:
G S Niteesh Babu
2021-03-18 08:20:56 +05:30
committed by Christian Mauderer
parent 3a66586c9e
commit 08f807e64a

View File

@@ -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;
} }
} }