Skip to content

Commit

Permalink
res: ubr: fix setting of #MOD variable for current device
Browse files Browse the repository at this point in the history
  • Loading branch information
prajnoha committed Aug 5, 2024
1 parent ba84dd0 commit fb7e7df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/resource/ubridge.c
Original file line number Diff line number Diff line change
Expand Up @@ -5167,10 +5167,10 @@ static int _common_scan_init(sid_res_t *cmd_res)
goto fail;
}

if (!(mod_name = _get_base_mod_name(cmd_res, buf, sizeof(buf))))
if (_set_dev_kvs(cmd_res) < 0)
goto fail;

if (_set_dev_kvs(cmd_res) < 0)
if (!(mod_name = _get_base_mod_name(cmd_res, buf, sizeof(buf))))
goto fail;

if (ucmd_ctx->req_env.dev.udev.action != UDEV_ACTION_REMOVE) {
Expand Down

0 comments on commit fb7e7df

Please sign in to comment.