Re: [PATCH] soundwire: validate DT compatible before parsing it

From: Vinod Koul

Date: Sun May 03 2026 - 12:34:10 EST



On Fri, 03 Apr 2026 14:55:12 +0800, Pengpeng Hou wrote:
> `sdw_of_find_slaves()` fetches raw `"compatible"` bytes with
> `of_get_property()` and then immediately parses them with
> `sscanf("sdw%01x%04hx%04hx%02hhx", ...)`.
>
> Live-tree OF properties are stored as raw bytes plus a separate length;
> they are not globally guaranteed to be NUL-terminated. Validate the
> first compatible string before parsing it.
>
> [...]

Applied, thanks!

[1/1] soundwire: validate DT compatible before parsing it
commit: 45c7bda7b7440183850012153988e40b300f40d0

Best regards,
--
~Vinod