From 988a5e5f7ae95fc5ec6bc2d61bb06d47363b7e7d Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Mon, 20 Oct 2025 22:24:46 -0400 Subject: kern: null: Return a count of zero in read hook Signed-off-by: Ian Moffett --- src/sys/os/os_null.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/sys') diff --git a/src/sys/os/os_null.c b/src/sys/os/os_null.c index e142c6f..ae0fcf4 100644 --- a/src/sys/os/os_null.c +++ b/src/sys/os/os_null.c @@ -41,7 +41,7 @@ static ssize_t null_read(struct devfs_node *dnp, struct dev_iobuf *io, int flags) { /* We give you a whole lot of nothing! */ - return io->count; + return 0; } /* -- cgit v1.2.3