fix(el3-spmc): deadlock when relinquishing memory

Do not forget to pass via err_unlock_mailbox: label.

Change-Id: Icfb997b1c7cce196003af2c28bffc50dc73e30b4
Signed-off-by: Lukas Hanel <lukas.hanel@trustonic.com>
This commit is contained in:
vallau01 2022-08-09 17:06:53 +02:00 committed by Lukas Hanel
parent be075c3edf
commit ac568b2bcc

View file

@ -1347,7 +1347,8 @@ spmc_ffa_mem_retrieve_req(uint32_t smc_fid,
if (req->emad_count == 0U) { if (req->emad_count == 0U) {
WARN("%s: unsupported attribute desc count %u.\n", WARN("%s: unsupported attribute desc count %u.\n",
__func__, obj->desc.emad_count); __func__, obj->desc.emad_count);
return -EINVAL; ret = FFA_ERROR_INVALID_PARAMETER;
goto err_unlock_mailbox;
} }
/* Determine the appropriate minimum descriptor size. */ /* Determine the appropriate minimum descriptor size. */