Home
last modified time | relevance | path

Searched hist:"769488761879119 d186e0463d1ccc031c9a83636" (Results 1 – 1 of 1) sorted by relevance

/optee_os/ta/pkcs11/src/
H A Dobject.c769488761879119d186e0463d1ccc031c9a83636 Wed Dec 15 05:24:04 UTC 2021 Mengchi Cheng <mengcc@amazon.com> ta: pkcs11: Clean up temporary_object_list on object creation failure

Calls LIST_REMOVE() only from cleanup_volatile_obj_ref() this is always
called to finalize object release. Allocated objects are always inserted
into a list after being created and therefore need to be removed for its
owner list before the memory is released.

This changes fixes an issue when handle_get() failed in create_object()
and does not remove the reference from temporary_object_list.

Signed-off-by: Mengchi Cheng <mengcc@amazon.com>
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>