Skip to content

Commit b6b58a9

Browse files
committed
linuxkm: add missing WC_NO_ERR_TRACE.
1 parent bb5291a commit b6b58a9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

linuxkm/lkcapi_glue.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ static int linuxkm_lkcapi_register(void)
385385
if (! alg ## _loaded) { \
386386
ret = (crypto_register_ ## alg_class)(&(alg)); \
387387
if (ret) { \
388-
if (fips_enabled && (ret == NOT_COMPILED_IN)) { \
388+
if (fips_enabled && (ret == WC_NO_ERR_TRACE(NOT_COMPILED_IN))) { \
389389
pr_info("wolfCrypt: skipping FIPS-incompatible alg %s.\n", \
390390
(alg).base.cra_driver_name); \
391391
} \
@@ -399,7 +399,7 @@ static int linuxkm_lkcapi_register(void)
399399
} else { \
400400
ret = (tester()); \
401401
if (ret) { \
402-
if (fips_enabled && (ret == NOT_COMPILED_IN)) { \
402+
if (fips_enabled && (ret == WC_NO_ERR_TRACE(NOT_COMPILED_IN))) { \
403403
pr_info("wolfCrypt: skipping FIPS-incompatible alg %s.\n", \
404404
(alg).base.cra_driver_name); \
405405
} \

0 commit comments

Comments
 (0)