mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 13:44:26 -04:00
qcacmn: Check to prevent crash when reading stats
Add a check for update_dp_stats before calling it. This is registered only for WIN & causes a crash on MCL. Change-Id: I584b7dba73bcc2426deb97641c30b4d704ce0d8b CRs-Fixed: 2111735
This commit is contained in:
parent
4ff1c130d3
commit
fb49db3c83
1 changed files with 2 additions and 1 deletions
|
|
@ -3710,7 +3710,8 @@ void dp_aggregate_vdev_stats(struct dp_vdev *vdev)
|
|||
peer->stats.tx.last_ack_rssi;
|
||||
}
|
||||
|
||||
soc->cdp_soc.ol_ops->update_dp_stats(vdev->pdev->osif_pdev,
|
||||
if (soc->cdp_soc.ol_ops->update_dp_stats)
|
||||
soc->cdp_soc.ol_ops->update_dp_stats(vdev->pdev->osif_pdev,
|
||||
&vdev->stats, vdev->vdev_id, UPDATE_VDEV_STATS);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue