firmware: arm_scmi: Use xa_insert() when saving raw queues
authorCristian Marussi <cristian.marussi@arm.com>
Mon, 8 Jan 2024 18:50:50 +0000 (18:50 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 Feb 2024 00:19:12 +0000 (16:19 -0800)
commita1703748bbafd602279318a30c4c575261238ecb
tree5061e7667d010a1854a87321b594116d8de2dbef
parent1c6d42e55d6c5c43b3df1c3d6cefa493f73001a6
firmware: arm_scmi: Use xa_insert() when saving raw queues

[ Upstream commit b5dc0ffd36560dbadaed9a3d9fd7838055d62d74 ]

Use xa_insert() when saving per-channel raw queues to better check for
duplicates.

Fixes: 7860701d1e6e ("firmware: arm_scmi: Add per-channel raw injection support")
Signed-off-by: Cristian Marussi <cristian.marussi@arm.com>
Link: https://lore.kernel.org/r/20240108185050.1628687-2-cristian.marussi@arm.com
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/firmware/arm_scmi/raw_mode.c