summaryrefslogtreecommitdiff
path: root/drivers/crypto
diff options
context:
space:
mode:
authorPingchao Yang <pingchao.yang@intel.com>2016-02-18 03:29:02 (GMT)
committerHerbert Xu <herbert@gondor.apana.org.au>2016-02-27 19:26:31 (GMT)
commitf93a8b25d2ae1ff8ecbb915495539f4e02d1b417 (patch)
treee62f7dbf8e9becaca42d80febcaf5901536868fd /drivers/crypto
parent3ee0cb5fb5eea2110db1b5cb7f67029b7be8a376 (diff)
downloadlinux-f93a8b25d2ae1ff8ecbb915495539f4e02d1b417.tar.xz
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>
Diffstat (limited to 'drivers/crypto')
-rw-r--r--drivers/crypto/qat/qat_common/qat_uclo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/qat/qat_common/qat_uclo.c b/drivers/crypto/qat/qat_common/qat_uclo.c
index 25d15f1..9b961b3 100644
--- a/drivers/crypto/qat/qat_common/qat_uclo.c
+++ b/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;