diff options
author | Cristian Marussi <[email protected]> | 2024-01-08 12:34:15 +0000 |
---|---|---|
committer | Sudeep Holla <[email protected]> | 2024-01-22 10:07:12 +0000 |
commit | ace760d9c0498fb226269ed34f0e86417d90f91b (patch) | |
tree | dc786148ebe78751a77963840f54e2e894d0e0f7 /scripts/generate_rust_analyzer.py | |
parent | ad9d9a107a4308e75ec34890547447c7095b4781 (diff) |
firmware: arm_ffa: Use xa_insert() and check for result
While adding new partitions descriptors to the XArray the outcome of the
stores should be checked and, in particular, it has also to be ensured
that an existing entry with the same index was not already present, since
partitions IDs are expected to be unique.
Use xa_insert() instead of xa_store() since it returns -EBUSY when the
index is already in use and log an error when that happens.
Signed-off-by: Cristian Marussi <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Sudeep Holla <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions