radeon: fix wait return code check

This commit is contained in:
Dave Airlie 2009-04-16 16:31:28 +10:00
parent 529848ce0c
commit 1edb70f1b9

View file

@ -194,7 +194,7 @@ static int bo_wait(struct radeon_bo *bo)
do {
ret = drmCommandWriteRead(bo->bom->fd, DRM_RADEON_GEM_WAIT_IDLE,
&args, sizeof(args));
} while (ret == -EAGAIN);
} while (ret == -EBUSY);
return ret;
}