Skip to content
Commit ffc95d1b authored by Anthony Yznaga's avatar Anthony Yznaga Committed by Alex Williamson
Browse files

vfio/type1: Fix vfio_find_dma_valid return



vfio_find_dma_valid is defined to return WAITED on success if it was
necessary to wait.  However, the loop forgets the WAITED value returned
by vfio_wait() and returns 0 in a later iteration.  Fix it.

Signed-off-by: default avatarAnthony Yznaga <anthony.yznaga@oracle.com>
Reviewed-by: default avatarSteve Sistare <steven.sistare@oracle.com>
Link: https://lore.kernel.org/r/1629736550-2388-1-git-send-email-anthony.yznaga@oracle.com


Signed-off-by: default avatarAlex Williamson <alex.williamson@redhat.com>
parent eb24c100
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment