• Jeenu Viswambharan's avatar
    SDEI: Pop dispatch context only after error checking · 8e3032f9
    Jeenu Viswambharan authored
    
    
    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: default avatarJeenu Viswambharan <jeenu.viswambharan@arm.com>
    8e3032f9
sdei_intr_mgmt.c 17.7 KB