Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
446374d7
Commit
446374d7
authored
Aug 15, 2016
by
Michael S. Tsirkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vhost/test: fix after swiotlb changes
Signed-off-by:
Michael S. Tsirkin
<
mst@redhat.com
>
parent
21bc54fc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
drivers/vhost/test.c
drivers/vhost/test.c
+4
-4
No files found.
drivers/vhost/test.c
View file @
446374d7
...
@@ -220,20 +220,20 @@ static long vhost_test_reset_owner(struct vhost_test *n)
...
@@ -220,20 +220,20 @@ static long vhost_test_reset_owner(struct vhost_test *n)
{
{
void
*
priv
=
NULL
;
void
*
priv
=
NULL
;
long
err
;
long
err
;
struct
vhost_
memory
*
memory
;
struct
vhost_
umem
*
umem
;
mutex_lock
(
&
n
->
dev
.
mutex
);
mutex_lock
(
&
n
->
dev
.
mutex
);
err
=
vhost_dev_check_owner
(
&
n
->
dev
);
err
=
vhost_dev_check_owner
(
&
n
->
dev
);
if
(
err
)
if
(
err
)
goto
done
;
goto
done
;
memory
=
vhost_dev_reset_owner_prepare
();
umem
=
vhost_dev_reset_owner_prepare
();
if
(
!
memory
)
{
if
(
!
umem
)
{
err
=
-
ENOMEM
;
err
=
-
ENOMEM
;
goto
done
;
goto
done
;
}
}
vhost_test_stop
(
n
,
&
priv
);
vhost_test_stop
(
n
,
&
priv
);
vhost_test_flush
(
n
);
vhost_test_flush
(
n
);
vhost_dev_reset_owner
(
&
n
->
dev
,
memory
);
vhost_dev_reset_owner
(
&
n
->
dev
,
umem
);
done:
done:
mutex_unlock
(
&
n
->
dev
.
mutex
);
mutex_unlock
(
&
n
->
dev
.
mutex
);
return
err
;
return
err
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment