mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 06:03:36 -04:00
qcacmn: Fix for direct dma + ftm mode
This change fixes the null pointer dereference issues observed when running spectral scan using direct dma framework with ftm mode. CRs-Fixed: 2214269 Change-Id: I06514b38b519da7eb972ff713feab97e7d5a9c29
This commit is contained in:
parent
37244642bf
commit
269c3deaac
1 changed files with 6 additions and 0 deletions
|
|
@ -694,6 +694,12 @@ QDF_STATUS target_if_direct_buf_rx_module_register(
|
|||
}
|
||||
direct_buf_rx_info("Dbr pdev obj %pK", dbr_pdev_obj);
|
||||
|
||||
if (!dbr_pdev_obj->dbr_mod_param &&
|
||||
(mod_id >= dbr_pdev_obj->num_modules)) {
|
||||
direct_buf_rx_err("Module %d not supported in target", mod_id);
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
||||
dbr_pdev_obj->dbr_mod_param[mod_id].dbr_rsp_handler =
|
||||
dbr_rsp_handler;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue