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: NJiangShui Yang <yangjiangshui@h-partners.com> Signed-off-by: NWeili Qian <qianweili@huawei.com>
Showing
想要评论请 注册 或 登录