]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
hostnamed: fix incorrect usage of device_dmi (#36948)
authorherbrechtsmeier <stefan@herbrechtsmeier.net>
Wed, 2 Apr 2025 12:41:44 +0000 (14:41 +0200)
committerGitHub <noreply@github.com>
Wed, 2 Apr 2025 12:41:44 +0000 (21:41 +0900)
Fix incorrect usage of device_dmi in context_acquire_device_tree().

Follow-up for 3e91aed6c4e53824adddb5b8ad124ffecb0e0673.

src/hostname/hostnamed.c

index d9ec55455fb8f175b5f26fd4ac74ab590149af5d..1f60423c5b5d1e314d1cab4b9896878e870f1ae1 100644 (file)
@@ -281,7 +281,7 @@ static int context_acquire_device_tree(Context *c) {
         assert(c);
         assert(!c->device_tree);
 
-        r = sd_device_new_from_path(&c->device_dmi, "/proc/device-tree/");
+        r = sd_device_new_from_path(&c->device_tree, "/proc/device-tree/");
         if (ERRNO_IS_NEG_DEVICE_ABSENT(r)) {
                 log_debug_errno(r, "Failed to open /proc/device-tree/ device, ignoring: %m");
                 return 0;