libethdrivers, tx2: Initialize count var in delay Fix issue where uninitialized count variable could lead to delay function not returning.
diff --git a/libethdrivers/src/plat/tx2/uboot/wait_bit.h b/libethdrivers/src/plat/tx2/uboot/wait_bit.h index c03f2d2..6395c5c 100644 --- a/libethdrivers/src/plat/tx2/uboot/wait_bit.h +++ b/libethdrivers/src/plat/tx2/uboot/wait_bit.h
@@ -43,7 +43,7 @@ const bool breakable) \ { \ type val; \ - volatile unsigned long count; \ + volatile unsigned long count = 0; \ \ while (count != timeout_ms) { \ val = *((type *)reg); \