# \[PATCH v2 24/51\] scsi: ips: don't return 0 from writes to the proc file

- From: Christian Brauner \<brauner@kernel.org\>
- Date: 2026-11-04 17:51:31 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2026/11/17862891
- Thread: https://ratatoskr.run/linux-fsdevel/2026/11/17862738/t.md

```text
ips_write_info() ignores what is written to /proc/scsi/ips/<n> and
returns 0. Writers that use stdio, echo for example, take that as no
progress and retry forever. Return the number of bytes that were
written.

Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
---
 drivers/scsi/ips.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/scsi/ips.c b/drivers/scsi/ips.c
index c7d6c5aae340..85c4fb164743 100644
--- a/drivers/scsi/ips.c
+++ b/drivers/scsi/ips.c
@@ -1428,7 +1428,7 @@ ips_write_info(struct Scsi_Host *host, char *buffer, int length)
 	if (!ha)
 		return (-EINVAL);
 
-	return 0;
+	return length;
 }
 
 static int

-- 
2.53.0


```
