mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 07:03:09 -04:00
qcacmn: Add target type checks
spectral register and unregister is supported for QCA8074, QCA8074V2 and QCA6018 Missing target check in spectral un- register function lead to memory leak issue Add missing target check in spectral unregister to resolve the leak CRs-Fixed: 2401813 Change-Id: I04283eaacc2d51934fb08ada46bca25d43c1dfa4
This commit is contained in:
parent
17810df306
commit
515e9989a0
1 changed files with 3 additions and 1 deletions
|
|
@ -306,7 +306,9 @@ tgt_spectral_unregister_to_dbr(struct wlan_objmgr_pdev *pdev)
|
|||
psoc = wlan_pdev_get_psoc(pdev);
|
||||
dbr_tx_ops = &psoc->soc_cb.tx_ops.dbr_tx_ops;
|
||||
|
||||
if (tgt_spectral_get_target_type(psoc) == TARGET_TYPE_QCA8074)
|
||||
if ((tgt_spectral_get_target_type(psoc) == TARGET_TYPE_QCA8074) ||
|
||||
(tgt_spectral_get_target_type(psoc) == TARGET_TYPE_QCA8074V2) ||
|
||||
(tgt_spectral_get_target_type(psoc) == TARGET_TYPE_QCA6018))
|
||||
if (dbr_tx_ops->direct_buf_rx_module_unregister)
|
||||
return dbr_tx_ops->direct_buf_rx_module_unregister
|
||||
(pdev, 0);
|
||||
|
|
|
|||
Loading…
Reference in a new issue