summaryrefslogtreecommitdiffstats
path: root/net/bpfilter
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-05-13 08:46:58 +0200
committerChristoph Hellwig <hch@lst.de>2020-07-08 08:27:56 +0200
commit6955a76fbcd56d27c84c01353101048e366d070f (patch)
treee966baa989bd62a2fd37ae71dd239b7a1a98203a /net/bpfilter
parent13c164b1a186dfe17d104d9638b86a06be1e40bf (diff)
downloadlinux-stable-6955a76fbcd56d27c84c01353101048e366d070f.tar.gz
linux-stable-6955a76fbcd56d27c84c01353101048e366d070f.tar.bz2
linux-stable-6955a76fbcd56d27c84c01353101048e366d070f.zip
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/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 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);