1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-22 17:35:35 +03:00

sd-device: manage cached sysattr values with path_hash_ops

As here keys are relative paths to sysattrs.
This commit is contained in:
Yu Watanabe 2023-04-07 08:50:54 +09:00
parent 0b4c70b47a
commit 8f5a8d7c36

View File

@ -2294,7 +2294,7 @@ int device_cache_sysattr_value(sd_device *device, const char *key, char *value)
return -ENOMEM;
}
r = hashmap_ensure_put(&device->sysattr_values, &string_hash_ops_free_free, new_key, value);
r = hashmap_ensure_put(&device->sysattr_values, &path_hash_ops_free_free, new_key, value);
if (r < 0)
return r;