summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nfs/ops.c2
1 files changed, 2 insertions, 0 deletions
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);