summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHimanshu Chauhan <[email protected]>2024-01-02 22:16:24 +0530
committerAnup Patel <[email protected]>2024-02-05 10:23:01 +0530
commit1ec353d5046c2f58033f9fdbeb45405f00c270fb (patch)
treecdfb2c424a3da2eae6db97dd6a5ccf1342bdf41c /include
parentbb90a9ebf6d9a2fe7726978d594e82cdbaad7799 (diff)
lib: sbi: Use mask to check the free bit during trigger allocation
The trigger allocation function uses bit shift instead of mask to check the mapped status of the triggers. This causes index 0 to be return always. As a result, the older triggers are overwritten. Use the mask for MAPPED field in state word to check if the trigger is mapped. Fixes: 97f234f15 ("lib: sbi: Introduce the SBI debug triggers extension support") Signed-off-by: Himanshu Chauhan <[email protected]> Reviewed-by: Anup Patel <[email protected]>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions