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

Signed-off-by: Jens Axboe <axboe@...nel.dk>
---
 drivers/staging/fieldbus/dev_core.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/fieldbus/dev_core.c b/drivers/staging/fieldbus/dev_core.c
index 0053ebd91442..4a9e211640db 100644
--- a/drivers/staging/fieldbus/dev_core.c
+++ b/drivers/staging/fieldbus/dev_core.c
@@ -194,6 +194,7 @@ static ssize_t fieldbus_read(struct file *filp, char __user *buf, size_t size,
 	of->dc_event = fbdev->dc_event;
 	return fbdev->read_area(fbdev, buf, size, offset);
 }
+FOPS_READ_ITER_HELPER(fieldbus_read);
 
 static ssize_t fieldbus_write(struct file *filp, const char __user *buf,
 			      size_t size, loff_t *offset)
@@ -203,6 +204,7 @@ static ssize_t fieldbus_write(struct file *filp, const char __user *buf,
 
 	return fbdev->write_area(fbdev, buf, size, offset);
 }
+FOPS_WRITE_ITER_HELPER(fieldbus_write);
 
 static __poll_t fieldbus_poll(struct file *filp, poll_table *wait)
 {
@@ -220,8 +222,8 @@ static __poll_t fieldbus_poll(struct file *filp, poll_table *wait)
 static const struct file_operations fieldbus_fops = {
 	.open		= fieldbus_open,
 	.release	= fieldbus_release,
-	.read		= fieldbus_read,
-	.write		= fieldbus_write,
+	.read_iter	= fieldbus_read_iter,
+	.write_iter	= fieldbus_write_iter,
 	.poll		= fieldbus_poll,
 	.llseek		= generic_file_llseek,
 	.owner		= THIS_MODULE,
-- 
2.43.0


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ