diff options
author | Christoph Hellwig <hch@lst.de> | 2020-05-13 09:46:58 +0300 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2020-07-08 09:27:56 +0300 |
commit | 6955a76fbcd56d27c84c01353101048e366d070f (patch) | |
tree | e966baa989bd62a2fd37ae71dd239b7a1a98203a /net | |
parent | 13c164b1a186dfe17d104d9638b86a06be1e40bf (diff) | |
download | linux-6955a76fbcd56d27c84c01353101048e366d070f.tar.xz |
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 <hch@lst.de>
Diffstat (limited to 'net')
-rw-r--r-- | net/bpfilter/bpfilter_kern.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bpfilter/bpfilter_kern.c b/net/bpfilter/bpfilter_kern.c index c0f0990f30b6..1905e01c3aa9 100644 --- a/net/bpfilter/bpfilter_kern.c +++ b/net/bpfilter/bpfilter_kern.c @@ -50,7 +50,7 @@ static int __bpfilter_process_sockopt(struct sock *sk, int optname, req.len = optlen; if (!bpfilter_ops.info.pid) goto out; - n = __kernel_write(bpfilter_ops.info.pipe_to_umh, &req, sizeof(req), + n = kernel_write(bpfilter_ops.info.pipe_to_umh, &req, sizeof(req), &pos); if (n != sizeof(req)) { pr_err("write fail %zd\n", n); |