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 {