On Mon, 23 Aug 2021 09:35:50 -0700 Anthony Yznaga <anthony.yznaga@xxxxxxxxxx> wrote: > 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: Anthony Yznaga <anthony.yznaga@xxxxxxxxxx> > Reviewed-by: Steve Sistare <steven.sistare@xxxxxxxxxx> > > --- > v3: > use Steve Sistare's suggested commit text and add his R-b > v2: > use Alex Williamson's simplified fix > > drivers/vfio/vfio_iommu_type1.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) Applied to vfio next branch for v5.15. Thanks, Alex