qcacmn: Add NULL pointer check for KW issues

Add NULL pointer check in function hif_send_single() and
htc_dump_counter_info() for KW issues.

Change-Id: I4b020c566b14b28a825c13752dccf67b5f8bb837
CRs-Fixed: 2675205
This commit is contained in:
Ke Huang
2020-04-30 11:17:53 +08:00
کامیت شده توسط nshrivas
والد 9789bab0d9
کامیت b404458d20
2فایلهای تغییر یافته به همراه6 افزوده شده و 0 حذف شده

مشاهده پرونده

@@ -69,6 +69,9 @@ void htc_dump_counter_info(HTC_HANDLE HTCHandle)
{
HTC_TARGET *target = GET_HTC_TARGET_FROM_HANDLE(HTCHandle);
if (!target)
return;
AR_DEBUG_PRINTF(ATH_DEBUG_ERR,
("\n%s: ce_send_cnt = %d, TX_comp_cnt = %d\n",
__func__, target->ce_send_cnt, target->TX_comp_cnt));