Skip to content

Commit

Permalink
nubus: Fix nubus_rewinddir
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David Huggins-Daines authored and geertu committed Apr 20, 2017
1 parent af23250 commit e36b991
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/nubus/nubus.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e36b991

Please sign in to comment.