mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 08:36:12 -04:00
qcacmn: Check ce_state for null before dereference in ce_mark_datapath
Dereference was happening before the null check. Also simplified the data structure traversal since we are inside hif. Change-Id: I2370402f3d080bd413ab949a40dc5d97fba6be27 CRs-Fixed: 1072077
This commit is contained in:
parent
3ba2483b2e
commit
55fcf5a1c8
1 changed files with 3 additions and 2 deletions
|
|
@ -521,10 +521,11 @@ bool ce_mark_datapath(struct CE_state *ce_state)
|
|||
size_t map_sz;
|
||||
int i;
|
||||
bool rc = false;
|
||||
struct hif_opaque_softc *hif_hdl = GET_HIF_OPAQUE_HDL(ce_state->scn);
|
||||
struct hif_target_info *tgt_info = hif_get_target_info_handle(hif_hdl);
|
||||
struct hif_target_info *tgt_info;
|
||||
|
||||
if (ce_state != NULL) {
|
||||
tgt_info = &ce_state->scn->target_info;
|
||||
|
||||
if (QDF_IS_EPPING_ENABLED(hif_get_conparam(ce_state->scn))) {
|
||||
svc_map = target_service_to_ce_map_wlan_epping;
|
||||
map_sz = sizeof(target_service_to_ce_map_wlan_epping) /
|
||||
|
|
|
|||
Loading…
Reference in a new issue