Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6d14bfe7 authored by Al Viro's avatar Al Viro Committed by Linus Torvalds
Browse files

Fix lguest misannotation



	It's void __user *, not void * __user...

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 25cccecc
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -187,7 +187,7 @@ static u32 copy_data(struct lguest *srclg,
		/* FIXME: This is not completely portable, since
		/* FIXME: This is not completely portable, since
		   archs do different things for copy_to_user_page. */
		   archs do different things for copy_to_user_page. */
		if (copy_from_user(maddr + (dst->addr[di] + dstoff)%PAGE_SIZE,
		if (copy_from_user(maddr + (dst->addr[di] + dstoff)%PAGE_SIZE,
				   (void *__user)src->addr[si], len) != 0) {
				   (void __user *)src->addr[si], len) != 0) {
			kill_guest(srclg, "bad address in sending DMA");
			kill_guest(srclg, "bad address in sending DMA");
			totlen = 0;
			totlen = 0;
			break;
			break;