Commit 75a206fa authored by JiangShui Yang's avatar JiangShui Yang Committed by openeuler-sync-bot
Browse files

crypto: hisilicon/qm: modify loop exit condition

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


CVE: NA

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

Loop branch using 'i++' as condition will cause the loop to not execute
when 'i == 0', should use '++i', Fix it.

Fixes: 26f2f10d ("crypto: hisilicon/qm - obtain the mailbox
configuration at one time")
Fixes: aabdf15d ("vfio/migration: obtain the mailbox configuration at one
time")
Signed-off-by: default avatarJiangShui Yang <yangjiangshui@h-partners.com>
Signed-off-by: default avatarWeili Qian <qianweili@huawei.com>
(cherry picked from commit fc71ef55)
parent 420dcdfd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment