Avoid NULL pointer usage of startup_future in case of HCI startup timeout
Previously, the startup_timer was created within the HCI layer start_up() function, and after several vendor calls, we created the startup_future that is used elsewhere. However, if any of the vendor calls blocks for very long time, the startup_timer will timeout. The startup_timer_expired() callback will try to use startup_future that is still NULL, and that will trigger an assert. The issue is avoided by creating the startup_future right before the startup_timer is scheduled. Bug: 28528815 Change-Id: Ib9f2c6581a86d3df0fd4d02d0b4c290663b5cfa1
Loading
Please register or sign in to comment