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
This commit is contained in:
Kiran Venkatappa 2016-12-20 11:29:34 +05:30 • committed by qcabuildsw
commit 55d3a20bb9

View file

@ -535,7 +535,7 @@ ce_cancel_send_next_srng(struct CE_handle *copyeng,
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_*_* */