From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 9511 invoked from network); 8 Jul 1999 01:12:06 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 8 Jul 1999 01:12:06 -0000 Received: from mail2.atl.bellsouth.net (mail2.atl.bellsouth.net [205.152.0.22]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id RAA18460 for ; Mon, 28 Jun 1999 17:46:18 -0400 Received: from pobox.com (adsl-77-228-47.atl.bellsouth.net [216.77.228.47]) by mail2.atl.bellsouth.net (8.8.8-spamdog/8.8.5) with ESMTP id RAA02477; Mon, 28 Jun 1999 17:46:08 -0400 (EDT) Sender: jgarzik@mail2.atl.bellsouth.net Message-ID: <3777ED20.1CB60952@pobox.com> Date: Mon, 28 Jun 1999 17:46:08 -0400 From: Jeff Garzik Organization: none X-Mailer: Mozilla 4.6 [en] (X11; I; Linux 2.2.10 i586) X-Accept-Language: en MIME-Version: 1.0 To: root@chaos.analogic.com CC: Richard Henderson , axp-list , FrameBuffer Subject: Re: bug in fbmem.c, References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit "Richard B. Johnson" wrote: > > On Mon, 28 Jun 1999, Richard Henderson wrote: > > > On Wed, Jun 23, 1999 at 09:35:43AM -0400, Jeff Garzik wrote: > > > + if (copy_size > 0) { > > > + char tmpbuf [copy_size]; > > > > You can't do dynamic stack allocation in the kernel. > > You'll have to use kmalloc or get_free_page or something. > > > > r~ > > > > Are you sure? With some limits-checking it should work, compiler > just subtracts N words from the stack-pointer to make room and > since the compiler 'knows' it did this, it still 'knows' where > everything else is. Even if the compiler can do it the fix is not correct because data copying need only occur on the Alpha, not on all platforms. Jeff