mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 16:46:15 -04:00
qcacmn: add null checks in cdp_get_dp_htt_stats
Add null checks in cdp_get_dp_htt_stats for soc Change-Id: Ifb158a33c1daddfb4aafa3fe4a88efbd57e70d48 CRs-Fixed: 2240121
This commit is contained in:
parent
b847c69bf1
commit
396bbc8f6f
1 changed files with 2 additions and 1 deletions
|
|
@ -405,7 +405,8 @@ static inline void cdp_get_dp_htt_stats(ol_txrx_soc_handle soc,
|
|||
struct cdp_pdev *pdev,
|
||||
void *data, uint32_t data_len)
|
||||
{
|
||||
if (soc->ops->host_stats_ops->get_htt_stats)
|
||||
if (soc && soc->ops && soc->ops->host_stats_ops &&
|
||||
soc->ops->host_stats_ops->get_htt_stats)
|
||||
return soc->ops->host_stats_ops->get_htt_stats
|
||||
(pdev, data, data_len);
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in a new issue