diff --git a/drivers/auth/auth_mod.c b/drivers/auth/auth_mod.c index 9aaa56768..d26112199 100644 --- a/drivers/auth/auth_mod.c +++ b/drivers/auth/auth_mod.c @@ -288,6 +288,7 @@ static int auth_signature(const auth_method_param_sig_t *param, if (rc != 0) { VERBOSE("[TBB] %s():%d failed with error code %d.\n", __func__, __LINE__, rc); + return rc; } } @@ -581,6 +582,7 @@ int auth_mod_verify_img(unsigned int img_id, if (rc != 0) { VERBOSE("[TBB] %s():%d failed with error code %d.\n", __func__, __LINE__, rc); + return rc; } } }