Skip to content

Commit 2889b2f

Browse files
committed
Ensure stop element has completed before checking its status
Signed-off-by: Alastair D'Silva <alastair@d-silva.org>
1 parent b4df3e3 commit 2889b2f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

samples/memcpy/memcpy.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -530,6 +530,8 @@ static bool afu_memcpy(ocxl_afu_h afu, const char *src, char *dst, size_t size,
530530
goto err_status;
531531
}
532532

533+
wait_for_status(timeout, afu, stop_element, err_irq_handle);
534+
533535
if (stop_element->status != 1) {
534536
LOG_ERR("unexpected status 0x%x for stop\n", stop_element->status);
535537
goto err_status;

0 commit comments

Comments
 (0)