qcacmn: sanity checks in hal_attach

In case of memory allocation failures,
return appropriate failure to the caller in hal attach.

Change-Id: Ifc319bbc274d8a13836968d460eb8067857363b8
CRs-Fixed: 3357203
这个提交包含在:
Sai Rupesh Chevuru
2022-12-18 20:46:31 +05:30
提交者 Madan Koyyalamudi
父节点 70c9b142e8
当前提交 166a30648f
修改 4 个文件,包含 34 行新增8 行删除

查看文件

@@ -781,15 +781,17 @@ void hal_reo_init_cmd_ring(hal_soc_handle_t hal_soc_hdl,
* Allocate MLO and Non MLO table for storing REO queue
* reference pointers
*
* Return: void
* Return: QDF_STATUS_SUCCESS on success else a QDF error.
*/
static inline void
static inline QDF_STATUS
hal_reo_shared_qaddr_setup(hal_soc_handle_t hal_soc_hdl)
{
struct hal_soc *hal_soc = (struct hal_soc *)hal_soc_hdl;
if (hal_soc->ops->hal_reo_shared_qaddr_setup)
return hal_soc->ops->hal_reo_shared_qaddr_setup(hal_soc_hdl);
return QDF_STATUS_SUCCESS;
}
/**
@@ -810,9 +812,10 @@ hal_reo_shared_qaddr_detach(hal_soc_handle_t hal_soc_hdl)
}
#else
static inline void
static inline QDF_STATUS
hal_reo_shared_qaddr_setup(hal_soc_handle_t hal_soc_hdl)
{
return QDF_STATUS_SUCCESS;
}
static inline void