Files
u-boot/drivers/firmware/scmi
Simon Glass 5b1fec5f9b firmware: scmi: Free allocated strings on device removal
The SCMI agent uclass allocates strings for vendor, sub_vendor,
agent_name, and protocols in the probe function but never frees them
when the device is removed. This causes memory leaks when the device
model is rebuilt, such as during test runs.

Add a pre_remove function to free these allocated strings. Take care
to only free sub_vendor and agent_name if they were actually allocated
(they may point to the string literal "NA" when the corresponding SCMI
calls are not supported).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-developed-by: Claude <noreply@anthropic.com>
2025-12-09 05:59:53 -07:00
..