Commit 87ff5642 authored by Matt Mackall's avatar Matt Mackall Committed by Linus Torvalds

[PATCH] Fix CON_BUF_SIZE usage

Signed-off-by: default avatarMatt Mackall <mpm@selenic.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 81ca0296
......@@ -1888,7 +1888,7 @@ static void do_con_trol(struct tty_struct *tty, unsigned int currcons, int c)
* 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 */
......
......@@ -93,8 +93,8 @@ void reset_vc(unsigned int new_console);
* 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 */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment