Skip to content

Commit 6955a76

Browse files
author
Christoph Hellwig
committed
bpfilter: switch to kernel_write
While pipes don't really need sb_writers projection, __kernel_write is an interface better kept private, and the additional rw_verify_area does not hurt here. Signed-off-by: Christoph Hellwig <[email protected]>
1 parent 13c164b commit 6955a76

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
@@ -50,7 +50,7 @@ static int __bpfilter_process_sockopt(struct sock *sk, int optname,
5050
req.len = optlen;
5151
if (!bpfilter_ops.info.pid)
5252
goto out;
53-
n = __kernel_write(bpfilter_ops.info.pipe_to_umh, &req, sizeof(req),
53+
n = kernel_write(bpfilter_ops.info.pipe_to_umh, &req, sizeof(req),
5454
&pos);
5555
if (n != sizeof(req)) {
5656
pr_err("write fail %zd\n", n);

0 commit comments

Comments
 (0)