]> git.ipfire.org Git - thirdparty/systemd.git/commit
udev: ignore errors in adding property with spurious value
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 26 May 2026 15:51:26 +0000 (00:51 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 26 May 2026 19:04:47 +0000 (04:04 +0900)
commite329ef572d6cfe091da468d28efb158597bb13ed
treed432f5f8796499d77259cdaa0e5c45744463d7f4
parent0f80db135922caae30d34e6853ce82637d1bb810
udev: ignore errors in adding property with spurious value

Since a62cd5a153ffe18c27aff02685ed75c5bc4509a2, when an invalid property
is being added, device_add_property() refuses it with -EINVAL.
Before the commit, the function could fail with only -ENOMEM, and if it fails,
processing udev rules was aborted.

Let's not hard fail when udev rules or udev builtins try to add an invalid
property, and let's just log and ignore the failure.

Follow-up for a62cd5a153ffe18c27aff02685ed75c5bc4509a2.

Fixes #41339 and #41296.
src/udev/udev-builtin-hwdb.c
src/udev/udev-builtin-tpm2_id.c
src/udev/udev-rules.c