lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240411153126.16201-20-axboe@kernel.dk>
Date: Thu, 11 Apr 2024 09:12:39 -0600
From: Jens Axboe <axboe@...nel.dk>
To: linux-kernel@...r.kernel.org
Cc: Jens Axboe <axboe@...nel.dk>
Subject: [PATCH 019/437] char/hpet: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@...nel.dk>
---
 drivers/char/hpet.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/char/hpet.c b/drivers/char/hpet.c
index d51fc8321d41..68a3ab149e72 100644
--- a/drivers/char/hpet.c
+++ b/drivers/char/hpet.c
@@ -303,6 +303,7 @@ hpet_read(struct file *file, char __user *buf, size_t count, loff_t * ppos)
 
 	return retval;
 }
+FOPS_READ_ITER_HELPER(hpet_read);
 
 static __poll_t hpet_poll(struct file *file, poll_table * wait)
 {
@@ -677,7 +678,7 @@ hpet_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
 static const struct file_operations hpet_fops = {
 	.owner = THIS_MODULE,
 	.llseek = no_llseek,
-	.read = hpet_read,
+	.read_iter = hpet_read_iter,
 	.poll = hpet_poll,
 	.unlocked_ioctl = hpet_ioctl,
 #ifdef CONFIG_COMPAT
-- 
2.43.0


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ