From c4cdd65044bcbdda856d45aada906085f86bd0e5 Mon Sep 17 00:00:00 2001 From: Dominik Ermel Date: Tue, 19 Sep 2023 14:13:05 +0000 Subject: [PATCH] Revert "crypto: fix dereferencing for mutexes" This reverts commit db89a3e729046b77a1846cbedc2544192907c769. Unfortunately this has been merged before required changes have been applied to sdk-zephyr. Signed-off-by: Dominik Ermel --- crypto/nrf_cc310_platform/src/nrf_cc3xx_platform_mutex_zephyr.c | 2 +- crypto/nrf_cc312_platform/src/nrf_cc3xx_platform_mutex_zephyr.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crypto/nrf_cc310_platform/src/nrf_cc3xx_platform_mutex_zephyr.c b/crypto/nrf_cc310_platform/src/nrf_cc3xx_platform_mutex_zephyr.c index f76c3b8a7e..0a7177ebdb 100644 --- a/crypto/nrf_cc310_platform/src/nrf_cc3xx_platform_mutex_zephyr.c +++ b/crypto/nrf_cc310_platform/src/nrf_cc3xx_platform_mutex_zephyr.c @@ -256,7 +256,7 @@ static void mutex_free_platform(nrf_cc3xx_platform_mutex_t *mutex) { /* Check if the mutex was allocated or being statically defined */ if ((mutex->flags & NRF_CC3XX_PLATFORM_MUTEX_MASK_IS_ALLOCATED) != 0) { - k_mem_slab_free(&mutex_slab, mutex->mutex); + k_mem_slab_free(&mutex_slab, &mutex->mutex); mutex->mutex = NULL; } else { diff --git a/crypto/nrf_cc312_platform/src/nrf_cc3xx_platform_mutex_zephyr.c b/crypto/nrf_cc312_platform/src/nrf_cc3xx_platform_mutex_zephyr.c index f76c3b8a7e..0a7177ebdb 100644 --- a/crypto/nrf_cc312_platform/src/nrf_cc3xx_platform_mutex_zephyr.c +++ b/crypto/nrf_cc312_platform/src/nrf_cc3xx_platform_mutex_zephyr.c @@ -256,7 +256,7 @@ static void mutex_free_platform(nrf_cc3xx_platform_mutex_t *mutex) { /* Check if the mutex was allocated or being statically defined */ if ((mutex->flags & NRF_CC3XX_PLATFORM_MUTEX_MASK_IS_ALLOCATED) != 0) { - k_mem_slab_free(&mutex_slab, mutex->mutex); + k_mem_slab_free(&mutex_slab, &mutex->mutex); mutex->mutex = NULL; } else {