Commit ad55b97a authored by Jeenu Viswambharan's avatar Jeenu Viswambharan
Browse files

SDEI: Fix return value of reset calls



At present, both SDEI_PRIVATE_RESET and SDEI_SHARED_RESET returns
SDEI_PENDING if they fail to unregister an event. The SDEI specification
however requires that the APIs return SDEI_EDENY in these cases. This
patch fixes the return codes for the reset APIs.

Change-Id: Ic14484c91fa8396910387196c256d1ff13d03afd
Signed-off-by: default avatarJeenu Viswambharan <jeenu.viswambharan@arm.com>
parent a852ec46
......@@ -795,7 +795,7 @@ static int sdei_private_reset(void)
*/
ret = sdei_event_unregister(map->ev_num);
if ((ret == SDEI_EPEND) && (final_ret == 0))
final_ret = ret;
final_ret = SDEI_EDENY;
}
return final_ret;
......@@ -817,7 +817,7 @@ static int sdei_shared_reset(void)
*/
ret = sdei_event_unregister(map->ev_num);
if ((ret == SDEI_EPEND) && (final_ret == 0))
final_ret = ret;
final_ret = SDEI_EDENY;
}
if (final_ret != 0)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment