瀏覽代碼

crypto: qat - The AE id should be less than the maximal AE number

Signed-off-by: Yang Pingchao <pingchao.yang@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Pingchao Yang 9 年之前
父節點
當前提交
f93a8b25d2
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/crypto/qat/qat_common/qat_uclo.c

+ 1 - 1
drivers/crypto/qat/qat_common/qat_uclo.c

@@ -688,7 +688,7 @@ static int qat_uclo_map_ae(struct icp_qat_fw_loader_handle *handle, int max_ae)
 	int mflag = 0;
 	struct icp_qat_uclo_objhandle *obj_handle = handle->obj_handle;
 
-	for (ae = 0; ae <= max_ae; ae++) {
+	for (ae = 0; ae < max_ae; ae++) {
 		if (!test_bit(ae,
 			      (unsigned long *)&handle->hal_handle->ae_mask))
 			continue;