From: Patrick McHardy Date: Wed, 7 May 2008 14:36:17 +0000 (+0800) Subject: [HIFN]: Fix max queue length value X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6cd3d674ddd1706226d4c395440ef1997fd72381;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [HIFN]: Fix max queue length value All but the last element of the command and result descriptor rings can be used for crypto requests, fix HIFN_QUEUE_LENGTH. Signed-off-by: Patrick McHardy Acked-by: Evgeniy Polyakov Signed-off-by: Herbert Xu --- diff --git a/drivers/crypto/hifn_795x.c b/drivers/crypto/hifn_795x.c index a4b1cea59ae6..d6f042370d45 100644 --- a/drivers/crypto/hifn_795x.c +++ b/drivers/crypto/hifn_795x.c @@ -371,7 +371,7 @@ static atomic_t hifn_dev_number; #define HIFN_D_DST_DALIGN 4 -#define HIFN_QUEUE_LENGTH HIFN_D_CMD_RSIZE-5 +#define HIFN_QUEUE_LENGTH HIFN_D_CMD_RSIZE-1 #define AES_MIN_KEY_SIZE 16 #define AES_MAX_KEY_SIZE 32