Made exit uniform
diff --git a/library/psa_crypto.c b/library/psa_crypto.c
index 57bdb6e..bb046ef 100644
--- a/library/psa_crypto.c
+++ b/library/psa_crypto.c
@@ -5555,6 +5555,7 @@
     {
         status = psa_generate_key_vendor(slot, attributes->core.bits,
             attributes->domain_parameters, attributes->domain_parameters_size);
+            goto exit;
     }
     else
 #endif /* MBEDTLS_PSA_CRYPTO_ACCEL_DRV_C */