From 3ba70235be29cc39df7d859df2894c9de2961019 Mon Sep 17 00:00:00 2001 From: Baptiste Jonglez Date: Mon, 30 Oct 2017 11:38:09 +0100 Subject: afalg: Fix kernel version check The check should reject kernel versions < 4.1.0, not <= 4.1.0. The issue was spotted on OpenSUSE 42.1 Leap, since its linux/version.h header advertises 4.1.0. CLA: trivial Fixes: 7f458a48 ("ALG: Add AFALG engine") Signed-off-by: Baptiste Jonglez Reviewed-by: Matt Caswell Reviewed-by: Richard Levitte (Merged from https://github.com/openssl/openssl/pull/4617) --- engines/e_afalg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines') diff --git a/engines/e_afalg.c b/engines/e_afalg.c index e6fa5472d3..2f5ee4ccba 100644 --- a/engines/e_afalg.c +++ b/engines/e_afalg.c @@ -24,7 +24,7 @@ #define K_MAJ 4 #define K_MIN1 1 #define K_MIN2 0 -#if LINUX_VERSION_CODE <= KERNEL_VERSION(K_MAJ, K_MIN1, K_MIN2) || \ +#if LINUX_VERSION_CODE < KERNEL_VERSION(K_MAJ, K_MIN1, K_MIN2) || \ !defined(AF_ALG) # ifndef PEDANTIC # warning "AFALG ENGINE requires Kernel Headers >= 4.1.0" -- cgit v1.2.3