Преглед изворни кода

qcacmn: Remove one possible reachable assertion

Remove one possible reachable assertion in case tainted FW
easily trigger the assert and perform a denial of service.

Change-Id: I913d619ab6268c0a843d93ed35c63c79b96ac488
CRs-Fixed: 2428205
lifeng пре 5 година
родитељ
комит
09e10eb5e2
1 измењених фајлова са 1 додато и 2 уклоњено
  1. 1 2
      wmi/src/wmi_unified_ocb_tlv.c

+ 1 - 2
wmi/src/wmi_unified_ocb_tlv.c

@@ -744,10 +744,9 @@ static QDF_STATUS extract_ocb_dcc_stats_tlv(wmi_unified_t wmi_handle,
 	if (fix_param->num_channels > ((WMI_SVC_MSG_MAX_SIZE -
 	    sizeof(*fix_param)) / sizeof(wmi_dcc_ndl_stats_per_channel)) ||
 	    fix_param->num_channels > param_tlvs->num_stats_per_channel_list) {
-		WMI_LOGE("%s: too many channels:%d actual:%d", __func__,
+		WMI_LOGW("%s: too many channels:%d actual:%d", __func__,
 			 fix_param->num_channels,
 			 param_tlvs->num_stats_per_channel_list);
-		QDF_ASSERT(0);
 		*resp = NULL;
 		return QDF_STATUS_E_INVAL;
 	}