summaryrefslogtreecommitdiff
path: root/drivers/nubus/nubus.c
diff options
context:
space:
mode:
authorDavid Huggins-Daines <dhd@debian.org>2017-04-09 02:51:15 +0300
committerGeert Uytterhoeven <geert@linux-m68k.org>2017-04-20 10:54:24 +0300
commite36b9913e00b39ff4afcacff947bc99d305aaac0 (patch)
tree2b86a21617123e3c7a8b3e5abf5c285e5c7d21e6 /drivers/nubus/nubus.c
parentaf2325024fe2dcbb9722d1b4c253a377076b1eed (diff)
downloadlinux-e36b9913e00b39ff4afcacff947bc99d305aaac0.tar.xz
nubus: Fix nubus_rewinddir
A long forgotten fix from the linux-mac68k CVS: Initialize dir->done pointer in nubus_rewinddir(). The original commit is here: http://linux-mac68k.cvs.sourceforge.net/viewvc/linux-mac68k/linux-mac68k/drivers/nubus/nubus.c?r1=1.22&r2=1.22.2.1&pathrev=linux-2_2 Signed-off-by: Finn Thain <fthain@telegraphics.com.au> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Diffstat (limited to 'drivers/nubus/nubus.c')
-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);