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-15-axboe@kernel.dk>
Date: Thu, 11 Apr 2024 09:12:34 -0600
From: Jens Axboe <axboe@...nel.dk>
To: linux-kernel@...r.kernel.org
Cc: Jens Axboe <axboe@...nel.dk>
Subject: [PATCH 014/437] char/applicom: convert to read/write iterators

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

diff --git a/drivers/char/applicom.c b/drivers/char/applicom.c
index 69314532f38c..9a1e5f7111b1 100644
--- a/drivers/char/applicom.c
+++ b/drivers/char/applicom.c
@@ -109,11 +109,14 @@ static ssize_t ac_write (struct file *, const char __user *, size_t, loff_t *);
 static long ac_ioctl(struct file *, unsigned int, unsigned long);
 static irqreturn_t ac_interrupt(int, void *);
 
+FOPS_READ_ITER_HELPER(ac_read);
+FOPS_WRITE_ITER_HELPER(ac_write);
+
 static const struct file_operations ac_fops = {
 	.owner = THIS_MODULE,
 	.llseek = no_llseek,
-	.read = ac_read,
-	.write = ac_write,
+	.read_iter = ac_read_iter,
+	.write_iter = ac_write_iter,
 	.unlocked_ioctl = ac_ioctl,
 };
 
-- 
2.43.0


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ