Skip to content

Commit

Permalink
ucmd: module: dm/lvm: reference proper module name to retrieve dm's '…
Browse files Browse the repository at this point in the history
…uuid' record
  • Loading branch information
prajnoha committed Aug 31, 2023
1 parent ffef4d9 commit cd12b6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/ucmd/type/dm/lvm/lvm.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ static int _lvm_subsys_match(struct module *module, struct sid_ucmd_ctx *ucmd_ct
{
const char *uuid;

if (!(uuid = sid_ucmd_get_foreign_mod_kv(module, ucmd_ctx, "type/dm", KV_NS_DEVMOD, "uuid", NULL, NULL, 0)))
if (!(uuid = sid_ucmd_get_foreign_mod_kv(module, ucmd_ctx, "/type/dm", KV_NS_DEVMOD, "uuid", NULL, NULL, 0)))
return 0;

return !strncmp(uuid, LVM_DM_UUID_PREFIX, sizeof(LVM_DM_UUID_PREFIX) - 1);
Expand Down

0 comments on commit cd12b6e

Please sign in to comment.