Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a53b1d31 authored by Matthew Xie's avatar Matthew Xie Committed by Android (Google) Code Review
Browse files

Merge "Hid Host: Ensure Hid module is accepting events before processing" into klp-dev

parents 5bd9f733 21a1454b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -369,10 +369,10 @@ void bta_hh_sm_execute(tBTA_HH_DEV_CB *p_cb, UINT16 event, tBTA_HH_DATA * p_data
                          bta_hh_evt_code(debug_event));
#endif

        if (in_state >= BTA_HH_INVALID_ST)
        if ((p_cb->state == BTA_HH_NULL_ST) || (p_cb->state >= BTA_HH_INVALID_ST))
        {
            APPL_TRACE_ERROR2("bta_hh_sm_execute: Invalid state State = 0x%x, Event = %d",
                              in_state,event);
                              p_cb->state,event);
            return;
        }
        state_table = bta_hh_st_tbl[p_cb->state - 1];