Commit e024e008 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by David S. Miller
Browse files

bpfilter: fix up a sparse annotation



The __user doesn't make sense when casting to an integer type, just
switch to a uintptr_t cast which also removes the need for the __force.

Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarLuc Van Oostenryck <luc.vanoostenryck@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 197569f7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -44,7 +44,7 @@ static int __bpfilter_process_sockopt(struct sock *sk, int optname,
	req.is_set = is_set;
	req.pid = current->pid;
	req.cmd = optname;
	req.addr = (long __force __user)optval;
	req.addr = (uintptr_t)optval;
	req.len = optlen;
	if (!bpfilter_ops.info.tgid)
		goto out;