Skip to content

Commit

Permalink
resource: ubridge: always allow change to DEV_RDY_{UNINITIALIZED,PRIV…
Browse files Browse the repository at this point in the history
…ATE,FLAT,UNAVAILABLE,PUBLIC} if we're not in DEV_RDY_UNDEFINED
  • Loading branch information
prajnoha committed Jan 4, 2024
1 parent aba3b8f commit e227571
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/resource/ubridge.c
Original file line number Diff line number Diff line change
Expand Up @@ -2699,7 +2699,7 @@ static int _do_sid_ucmd_dev_set_ready(sid_resource_t *mod_res, struct sid_ucmd_c
case DEV_RDY_FLAT:
case DEV_RDY_UNAVAILABLE:
case DEV_RDY_PUBLIC:
if (old_ready < _DEV_RDY && old_ready != DEV_RDY_UNCONFIGURED)
if (old_ready == DEV_RDY_UNDEFINED)
return -EBADRQC;
break;
}
Expand Down

0 comments on commit e227571

Please sign in to comment.