Skip to content

Commit e024e00

Browse files
Christoph Hellwigdavem330
authored andcommitted
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 <[email protected]> Reviewed-by: Luc Van Oostenryck <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 197569f commit e024e00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/bpfilter/bpfilter_kern.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ static int __bpfilter_process_sockopt(struct sock *sk, int optname,
4444
req.is_set = is_set;
4545
req.pid = current->pid;
4646
req.cmd = optname;
47-
req.addr = (long __force __user)optval;
47+
req.addr = (uintptr_t)optval;
4848
req.len = optlen;
4949
if (!bpfilter_ops.info.tgid)
5050
goto out;

0 commit comments

Comments
 (0)