]> git.ipfire.org Git - thirdparty/systemd.git/commit
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)
commit807db92ab4276f085c8e1fcfe4f5ff256fefc5fb
tree545cfb4fa02c08fd3a455a76d56beb704faeb967
parentd5cdcba928823faf5ddcca267e3866ab5d5fc729
parent3328d1e1816f408e6516c35991a89a8d21fd60b4
sd-device: fix validation for devices under /sys/firmware/ in sd_device_new_from_subsystem_sysname() (#35863)

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.