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

Commit 2376daf2 authored by Weifan's avatar Weifan Committed by Myles Watson
Browse files

Fix coverity issue: Null Point Crash Issue

if rc_supported_event_list is null which would lead bt crash.

Bug: 303985141
Test: mma -j32
Test: avrcp function pass
Flag: EXEMPT, null-pointer check fix
Change-Id: I45658229ebf5293f043fb6c3d550837eeee24c03
parent 152e04ae
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3001,7 +3001,7 @@ bool iterate_supported_event_list_for_interim_rsp(void* data, void* cb_data) {
static void rc_notification_interim_timeout(btif_rc_device_cb_t* p_dev,
                                            uint8_t event_id) {
  /* Device disconnections clear the event list but can't free the timer */
  if (p_dev == NULL || p_dev->rc_supported_event_list) {
  if (p_dev == NULL || p_dev->rc_supported_event_list == NULL) {
    LOG_WARN("%s: timeout for null device or event list", __func__);
    return;
  }