mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-20 23:34:47 +07:00
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>
This commit is contained in:
parent
197569f72a
commit
e024e00818
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user