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
此提交包含在:
@@ -521,10 +521,11 @@ bool ce_mark_datapath(struct CE_state *ce_state)
|
|||||||
size_t map_sz;
|
size_t map_sz;
|
||||||
int i;
|
int i;
|
||||||
bool rc = false;
|
bool rc = false;
|
||||||
struct hif_opaque_softc *hif_hdl = GET_HIF_OPAQUE_HDL(ce_state->scn);
|
struct hif_target_info *tgt_info;
|
||||||
struct hif_target_info *tgt_info = hif_get_target_info_handle(hif_hdl);
|
|
||||||
|
|
||||||
if (ce_state != NULL) {
|
if (ce_state != NULL) {
|
||||||
|
tgt_info = &ce_state->scn->target_info;
|
||||||
|
|
||||||
if (QDF_IS_EPPING_ENABLED(hif_get_conparam(ce_state->scn))) {
|
if (QDF_IS_EPPING_ENABLED(hif_get_conparam(ce_state->scn))) {
|
||||||
svc_map = target_service_to_ce_map_wlan_epping;
|
svc_map = target_service_to_ce_map_wlan_epping;
|
||||||
map_sz = sizeof(target_service_to_ce_map_wlan_epping) /
|
map_sz = sizeof(target_service_to_ce_map_wlan_epping) /
|
||||||
|
新增問題並參考
封鎖使用者