Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
driver: crypto: hisilicon: fix exception handling
1. support num = 0 in qm_set_vft_common(). When qm_set_xqc_set() failed, it will set q_num to zero. qm_set_vft_common() need to support this scene. 2. release qp when qm_xqc_cfg() failed. 3. add check of msg and qp->num in hisi_qp_recv_sync(). hisi_qp_recv_sync() is not static function, we need to check every input parameter to ensure that it is safe. Signed-off-by: Zexi Yu <yuzexi@hisilicon.com>
- Loading branch information