summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/nubus/nubus.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/nubus/nubus.c b/drivers/nubus/nubus.c
index 3319cf19deeb..ea9202de56f0 100644
--- a/drivers/nubus/nubus.c
+++ b/drivers/nubus/nubus.c
@@ -285,6 +285,8 @@ EXPORT_SYMBOL(nubus_readdir);
int nubus_rewinddir(struct nubus_dir* dir)
{
dir->ptr = dir->base;
+ dir->done = 0;
+
return 0;
}
EXPORT_SYMBOL(nubus_rewinddir);