linux/drivers/i3c/master
Stanley Chu 3ef5e106a3 i3c: master: svc: Recycle unused IBI slot
[ Upstream commit 3448a934ba ]

In svc_i3c_master_handle_ibi(), an IBI slot is fetched from the pool
to store the IBI payload. However, when an error condition is encountered,
the function returns without recycling the IBI slot, resulting in an IBI
slot leak.

Fixes: c85e209b79 ("i3c: master: svc: fix ibi may not return mandatory data byte")
Signed-off-by: Stanley Chu <yschu@nuvoton.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Link: https://lore.kernel.org/r/20250829012309.3562585-3-yschu@nuvoton.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2025-10-15 12:03:33 +02:00
..
mipi-i3c-hci i3c: mipi-i3c-hci: use adapter timeout value for I2C transfers 2025-07-04 01:10:07 +02:00
ast2600-i3c-master.c Get rid of 'remove_new' relic from platform driver struct 2024-12-01 15:12:43 -08:00
dw-i3c-master.c i3c: dw: Remove redundant pm_runtime_mark_last_busy() calls 2025-07-31 01:37:56 +02:00
dw-i3c-master.h i3c: dw: Add quirk to address OD/PP timing issue on AMD platform 2024-11-18 14:27:29 +01:00
i3c-master-cdns.c i3c: master: cdns: Simplify handling clocks in probe() 2025-07-31 01:24:25 +02:00
Kconfig i3c: master: Add basic driver for the Renesas I3C controller 2025-07-31 01:33:20 +02:00
Makefile i3c: master: Add basic driver for the Renesas I3C controller 2025-07-31 01:33:20 +02:00
renesas-i3c.c i3c: master: Add basic driver for the Renesas I3C controller 2025-07-31 01:33:20 +02:00
svc-i3c-master.c i3c: master: svc: Recycle unused IBI slot 2025-10-15 12:03:33 +02:00