fix typo in arch/parisc/hpux/fs.c
authorStephen Rothwell <sfr@canb.auug.org.au>
Mon, 1 Sep 2008 17:43:27 +0000 (03:43 +1000)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 2 Sep 2008 17:57:29 +0000 (10:57 -0700)
A parisc allmodconfig build produces this:

arch/parisc/hpux/fs.c:107: error: 'buffer' undeclared (first use in this function)

Introduced by commit da574983de9f9283ba35662c8723627096e160de ("[PATCH]
fix hpux_getdents()").

Helge Dille also reported this in bugzilla 11461:

http://bugzilla.kernel.org/show_bug.cgi?id=11461

and he posted an identical patch.

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/parisc/hpux/fs.c

index 69ff671498e53069af7a1575c2745702a117930d..12c04c5e558be01c1a219214721bfbd1901c1b4e 100644 (file)
@@ -104,7 +104,7 @@ static int filldir(void * __buf, const char * name, int namlen, loff_t offset,
        buf->count -= reclen;
        return 0;
 Efault:
-       buffer->error = -EFAULT;
+       buf->error = -EFAULT;
        return -EFAULT;
 }