From c43ee99d46966b7ba6e2b5a63ba3dc9d02a4e2af Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Fri, 29 Mar 1996 22:17:07 +0000 Subject: (netfs_report_access): Make sure netfs_attempt_read return a reasonable LEN. --- nfs/ops.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'nfs/ops.c') diff --git a/nfs/ops.c b/nfs/ops.c index ac5ceb98..417cc4af 100644 --- a/nfs/ops.c +++ b/nfs/ops.c @@ -969,6 +969,8 @@ netfs_report_access (struct netcred *cred, *types = O_READ | O_EXEC; + assert (len == 1 || len == 0); + if (len == 1) { err = netfs_attempt_write (cred, np, 0, &len, &byte); -- cgit v1.2.3