Merge "soc: qcom: msm_bus: Set current index to default value"
This commit is contained in:
commit
b23cd82dba
1 changed files with 1 additions and 1 deletions
|
@ -869,7 +869,7 @@ static void unregister_client_adhoc(uint32_t cl)
|
|||
}
|
||||
|
||||
curr = client->curr;
|
||||
if (curr >= pdata->num_usecases) {
|
||||
if ((curr < 0) || (curr >= pdata->num_usecases)) {
|
||||
MSM_BUS_ERR("Invalid index Defaulting curr to 0");
|
||||
curr = 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue