qcacmn: Fix for crash during unload of driver modules
Change ce_cancel API to return error status in srng implementation.
Since this feature is not yet added, it should return error status, zero
or success return value will result in a infinite loop causing access to
invalid memory.
Change-Id: I871cc16e2854aeca694c7538cc1e99ab24b04de6
CRs-Fixed: 1097695
diff --git a/hif/src/ce/ce_service_srng.c b/hif/src/ce/ce_service_srng.c
index a5df6b7..a8e96ab 100644
--- a/hif/src/ce/ce_service_srng.c
+++ b/hif/src/ce/ce_service_srng.c
@@ -535,7 +535,7 @@
unsigned int *transfer_idp,
uint32_t *toeplitz_hash_result)
{
- return 0;
+ return QDF_STATUS_E_INVAL;
}
/* Shift bits to convert IS_*_RING_*_WATERMARK_MASK to CE_WM_FLAG_*_* */