[PATCH] powerpc: fix large nvram access

Olaf Hering olh at suse.de
Wed Jan 11 21:25:40 EST 2006


 On Wed, Jan 11, Arnd Bergmann wrote:

> Am Dienstag, 10. Januar 2006 23:13 schrieb Olaf Hering:
> >  On Mon, Jan 09, Linux Kernel Mailing List wrote:
> > > tree da8f883f72d08f9534e9eca3bba662413b9bd865
> > > parent d52771fce4e774fa786097d34412a057d487c697
> > > author Arnd Bergmann <arnd at arndb.de> Fri, 09 Dec 2005 19:21:44 +0100
> > > committer Paul Mackerras <paulus at samba.org> Mon, 09 Jan 2006 14:53:31
> > > +1100
> > >
> > > [PATCH] powerpc: fix large nvram access
> > >
> > > /dev/nvram uses the user-provided read/write size
> > > for kmalloc, which fails, if a large number is passed.
> > > This will always use a single page at most, which
> > > can be expected to succeed.
> > >
> > > Signed-off-by: Arnd Bergmann <arndb at de.ibm.com>
> > > Signed-off-by: Paul Mackerras <paulus at samba.org>
> > >
> > >  arch/powerpc/kernel/nvram_64.c |  114
> > > +++++++++++++++++++----------------------
> >
> > this change breaks my nvsetenv binary on JS20.
> >
> 
> I think this has uncovered a bug that has been in nvsetenv for a long time.

Yeah. Dont bother, I will fix that tool.

-- 
short story of a lazy sysadmin:
 alias appserv=wotan



More information about the Linuxppc-dev mailing list