Skip to content

Commit

Permalink
mods: ucmd: dm: also handle cookie for remove event
Browse files Browse the repository at this point in the history
  • Loading branch information
prajnoha committed Aug 7, 2024
1 parent 26b0c28 commit 2ab077b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/modules/ucmd/type/dm/dm.c
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,8 @@ static int _get_cookie_props(sid_res_t *mod_res, struct sid_ucmd_ctx *ucmd_ctx,
return -1;
}

*cookie_flags = flags;
if (cookie_flags)
*cookie_flags = flags;
return 1;
}

Expand Down Expand Up @@ -1017,6 +1018,9 @@ static int _dm_scan_remove_init(sid_res_t *mod_res, struct sid_ucmd_ctx *ucmd_ct
{
sid_res_log_debug(mod_res, "scan-remove-init");

if (_get_cookie_props(mod_res, ucmd_ctx, NULL) < 0)
return -1;

if (_dm_submod_common_scan_init(mod_res, ucmd_ctx) < 0)
return -1;

Expand Down

0 comments on commit 2ab077b

Please sign in to comment.