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

Commit ed3bfdfd authored by David Howells's avatar David Howells Committed by David S. Miller
Browse files

RxRPC: Fix missing __user annotation



Fix a missing __user annotation in a cast of a user space pointer (found by
checker).

Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 37b7021d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1143,7 +1143,7 @@ static long rxrpc_read(const struct key *key,
		if (copy_to_user(xdr, (s), _l) != 0)			\
			goto fault;					\
		if (_l & 3 &&						\
		    copy_to_user((u8 *)xdr + _l, &zero, 4 - (_l & 3)) != 0) \
		    copy_to_user((u8 __user *)xdr + _l, &zero, 4 - (_l & 3)) != 0) \
			goto fault;					\
		xdr += (_l + 3) >> 2;					\
	} while(0)