arm-trusted-firmware/services/std_svc
Jeenu Viswambharan 8e3032f921 SDEI: Pop dispatch context only after error checking
Currently, when the client attempts to do SDEI_EVENT_COMPLETE or
SDEI_EVENT_COMPLETE_AND_RESUME, the dispatcher pops off the outstanding
dispatch context for sanity check. There are however other checks
following this, which could potentially return failure. If that happens,
by popping the context, the dispatcher has inadvertently discarded a
valid context.

This patch fixes this bug by inspecting (not actually popping) the
outstanding context. The context is popped only after all error checks
are completed.

Change-Id: Ie199f6442f871a8177a8247a0c646543bad76d21
Signed-off-by: Jeenu Viswambharan <jeenu.viswambharan@arm.com>
2018-02-27 13:41:47 +00:00
..
sdei SDEI: Pop dispatch context only after error checking 2018-02-27 13:41:47 +00:00
spm Ensure the correct execution of TLBI instructions 2018-02-21 13:54:55 +00:00
std_svc_setup.c BL31: Add SDEI dispatcher 2017-11-13 08:38:51 +00:00