All of lore.kernel.org
 help / color / mirror / Atom feed
From: Matt Mackall <mpm@selenic.com>
To: linux-kernel <linux-kernel@vger.kernel.org>,
	Andrew Morton <akpm@osdl.org>
Subject: [TRIVIAL] Fix CON_BUF_SIZE usage
Date: Fri, 30 Jul 2004 17:32:46 -0500	[thread overview]
Message-ID: <20040730223246.GV16310@waste.org> (raw)

Signed-off-by: Matt Mackall <mpm@selenic.com>

Index: tiny/drivers/char/vt.c
===================================================================
--- tiny.orig/drivers/char/vt.c	2004-07-24 11:53:05.000000000 -0500
+++ tiny/drivers/char/vt.c	2004-07-27 17:02:56.000000000 -0500
@@ -1864,7 +1864,7 @@
  * since console_init (and thus con_init) are called before any
  * kernel memory allocation is available.
  */
-char con_buf[PAGE_SIZE];
+char con_buf[CON_BUF_SIZE];
 DECLARE_MUTEX(con_buf_sem);
 
 /* acquires console_sem */
Index: tiny/include/linux/vt_kern.h
===================================================================
--- tiny.orig/include/linux/vt_kern.h	2004-07-24 11:53:28.000000000 -0500
+++ tiny/include/linux/vt_kern.h	2004-07-27 17:04:34.000000000 -0500
@@ -89,8 +89,8 @@
  * vc_screen.c shares this temporary buffer with the console write code so that
  * we can easily avoid touching user space while holding the console spinlock.
  */
-extern char con_buf[PAGE_SIZE];
 #define CON_BUF_SIZE	PAGE_SIZE
+extern char con_buf[CON_BUF_SIZE];
 extern struct semaphore con_buf_sem;
 
 #endif /* _VT_KERN_H */

-- 
Mathematics is the supreme nostalgia of our time.

                 reply	other threads:[~2004-07-30 22:32 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040730223246.GV16310@waste.org \
    --to=mpm@selenic.com \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.