]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sd-device: fix validation for devices under /sys/firmware/ in sd_device_new_from_subs...
authorLuca Boccassi <bluca@debian.org>
Mon, 6 Jan 2025 11:06:23 +0000 (11:06 +0000)
committerGitHub <noreply@github.com>
Mon, 6 Jan 2025 11:06:23 +0000 (11:06 +0000)
Devices under /sys/firmware/ do not have subsystems. Hence, the
validation in sd_device_new_from_subsystem_sysname() ->
device_new_from_path_join() always failed.

Fixes a bug introduced by cd7c71154cd62d3f50c07ce387edd9c20aebd7bc
(v257).
Fixes #35861.


Trivial merge