mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-29 11:44:30 +01:00
SE driver: Fix loading of persistent data
The persistent data was not loaded correctly (the code was loading 0 bytes instead of the correct size).
This commit is contained in:
parent
c84c70a83c
commit
d5536d8a5b
@ -341,6 +341,8 @@ psa_status_t psa_register_se_driver(
|
|||||||
|
|
||||||
driver_table[i].lifetime = lifetime;
|
driver_table[i].lifetime = lifetime;
|
||||||
driver_table[i].methods = methods;
|
driver_table[i].methods = methods;
|
||||||
|
driver_table[i].internal.persistent_data_size =
|
||||||
|
methods->persistent_data_size;
|
||||||
|
|
||||||
if( methods->persistent_data_size != 0 )
|
if( methods->persistent_data_size != 0 )
|
||||||
{
|
{
|
||||||
@ -358,8 +360,6 @@ psa_status_t psa_register_se_driver(
|
|||||||
if( status != PSA_SUCCESS && status != PSA_ERROR_DOES_NOT_EXIST )
|
if( status != PSA_SUCCESS && status != PSA_ERROR_DOES_NOT_EXIST )
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
driver_table[i].internal.persistent_data_size =
|
|
||||||
methods->persistent_data_size;
|
|
||||||
|
|
||||||
return( PSA_SUCCESS );
|
return( PSA_SUCCESS );
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user