aboutsummaryrefslogtreecommitdiffstats
path: root/net/bpfilter
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-07-23 08:08:43 +0200
committerDavid S. Miller <davem@davemloft.net>2020-07-24 15:41:53 -0700
commite024e008186bf9f4109c86b66dd60d0f926bc1fb (patch)
tree601b446be8e685655c04d3436914b10f8a26def5 /net/bpfilter
parentMerge branch 'TC-datapath-hash-api' (diff)
downloadlinux-dev-e024e008186bf9f4109c86b66dd60d0f926bc1fb.tar.xz
linux-dev-e024e008186bf9f4109c86b66dd60d0f926bc1fb.zip
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: Christoph Hellwig <hch@lst.de> Reviewed-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bpfilter')
-rw-r--r--net/bpfilter/bpfilter_kern.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bpfilter/bpfilter_kern.c b/net/bpfilter/bpfilter_kern.c
index 2c31e82cb953..3bac5820062a 100644
--- a/net/bpfilter/bpfilter_kern.c
+++ b/net/bpfilter/bpfilter_kern.c
@@ -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;