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

Commit b29002bb authored by Jigong Yin's avatar Jigong Yin
Browse files

Fix hid host coverity issue - not set null after free

[Root Cause]
After timer is freed, not set timer NULL.

[Solution]
Set timer NULL.

Bug: 301369984
Test: atest net_test_btif pass

Change-Id: Ide030e58e23a2802e9e2fbb50433c7376dc7dc62
parent c7066ef9
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -308,6 +308,7 @@ tHID_STATUS HID_HostDeregister(void) {
  for (i = 0; i < HID_HOST_MAX_DEVICES; i++) {
    HID_HostRemoveDev(i);
    alarm_free(hh_cb.devices[i].conn.process_repage_timer);
    hh_cb.devices[i].conn.process_repage_timer = NULL;
  }

  hidh_conn_dereg();