Skip to content

Commit 446374d

Browse files
committed
vhost/test: fix after swiotlb changes
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
1 parent 21bc54f commit 446374d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/vhost/test.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -220,20 +220,20 @@ static long vhost_test_reset_owner(struct vhost_test *n)
220220
{
221221
void *priv = NULL;
222222
long err;
223-
struct vhost_memory *memory;
223+
struct vhost_umem *umem;
224224

225225
mutex_lock(&n->dev.mutex);
226226
err = vhost_dev_check_owner(&n->dev);
227227
if (err)
228228
goto done;
229-
memory = vhost_dev_reset_owner_prepare();
230-
if (!memory) {
229+
umem = vhost_dev_reset_owner_prepare();
230+
if (!umem) {
231231
err = -ENOMEM;
232232
goto done;
233233
}
234234
vhost_test_stop(n, &priv);
235235
vhost_test_flush(n);
236-
vhost_dev_reset_owner(&n->dev, memory);
236+
vhost_dev_reset_owner(&n->dev, umem);
237237
done:
238238
mutex_unlock(&n->dev.mutex);
239239
return err;

0 commit comments

Comments
 (0)