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

Commit 8b863d83 authored by Matthew Xie's avatar Matthew Xie Committed by Android Git Automerger
Browse files

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

* commit 'a53b1d31':
  Hid Host: Ensure Hid module is accepting events before processing
parents 7f30424c a53b1d31
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];