arm-trusted-firmware/services/std_svc/sdei
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_event.c BL31: Add SDEI dispatcher 2017-11-13 08:38:51 +00:00
sdei_intr_mgmt.c SDEI: Pop dispatch context only after error checking 2018-02-27 13:41:47 +00:00
sdei_main.c SDEI: Fix return value of reset calls 2017-12-06 08:37:13 +00:00
sdei_private.h BL31: Add SDEI dispatcher 2017-11-13 08:38:51 +00:00
sdei_state.c Remove URLs from comments 2018-02-14 11:41:26 +00:00