From: Pingchao Yang Date: Thu, 18 Feb 2016 03:29:02 +0000 (-0500) Subject: crypto: qat - The AE id should be less than the maximal AE number X-Git-Tag: next-20160301~71^2~5 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=f93a8b25d2ae1ff8ecbb915495539f4e02d1b417;p=karo-tx-linux.git crypto: qat - The AE id should be less than the maximal AE number Signed-off-by: Yang Pingchao Signed-off-by: Herbert Xu --- diff --git a/drivers/crypto/qat/qat_common/qat_uclo.c b/drivers/crypto/qat/qat_common/qat_uclo.c index 25d15f19c2b3..9b961b37a282 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;