Commit 74790d49 authored by Yu'an Wang's avatar Yu'an Wang Committed by w00416078
Browse files

crypto: hisilicon/qm - prevent soft lockup in qm_poll_qp()'s loop

driver inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I82LC6


CVE: NA

--------------------------------

The function qm_poll_qp() may take a while due to complex req_cb,
so soft lockup may occur in kernel with preemption disabled.
Add a cond_resched() to prevent that.

Signed-off-by: default avatarYu'an Wang <wangyuan46@huawei.com>
parent bde0cdaf
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment