Skip to content

Commit

Permalink
CR-1113125 Crash during xbutil validate -d on U.2 (#5914) (#5915)
Browse files Browse the repository at this point in the history
(cherry picked from commit 94ec0f3)
  • Loading branch information
chienwei-lan authored Oct 9, 2021
1 parent 28469d9 commit 2719b60
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/runtime_src/core/pcie/driver/linux/xocl/subdev/ert_user.c
Original file line number Diff line number Diff line change
Expand Up @@ -1247,7 +1247,6 @@ static void xocl_ert_user_remove_event(struct xocl_ert_user *ert_user, struct er
continue;

list_del(&curr->ev_entry);
free_ert_user_event(curr);
break;
}

Expand Down Expand Up @@ -1288,8 +1287,8 @@ int ert_user_thread(void *data)
process_ert_cq(ert_user);

if (unlikely(ev_client)) {
complete(&ev_client->cmp);
xocl_ert_user_remove_event(ert_user, ev_client);
complete(&ev_client->cmp);
}

/* If any event occured, we should drain all the related commands ASAP
Expand Down Expand Up @@ -1442,6 +1441,8 @@ static bool xocl_ert_user_abort_sync(struct kds_ert *ert, struct kds_client *cli

wait_for_completion(&event->cmp);

free_ert_user_event(event);

return ert_user->bad_state;
}

Expand Down

0 comments on commit 2719b60

Please sign in to comment.