From 5372d55f63aa8113ff684696ba072921bb0a68ac Mon Sep 17 00:00:00 2001 From: Jinwei Chen Date: Thu, 20 Jun 2019 15:10:51 +0800 Subject: [PATCH] qcacmn: fix invalid access to hif_ext_group issue hif_ext_group is not initialized if DP interrupt is not registed like monitor mode, invalid access will happen in function hif_hist_record_event. if hif_num_extgroup is 0, stop access to hif_ext_group member. Change-Id: Id4432577446caa8887ca6d1fb8b669dda8c9fdf3 CRs-Fixed: 2475506 --- hif/src/hif_exec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hif/src/hif_exec.c b/hif/src/hif_exec.c index 944d5a83ad53..339359b1c473 100644 --- a/hif/src/hif_exec.c +++ b/hif/src/hif_exec.c @@ -53,7 +53,7 @@ void hif_hist_record_event(struct hif_opaque_softc *hif_ctx, struct hif_event_record *record; int record_index; - if (!event) + if (!hif_state->hif_num_extgroup) return; if (scn->event_disable_mask & BIT(event->type))