]> git.baikalelectronics.ru Git - kernel.git/commit
console: limit the range of VGACON_SOFT_SCROLLBACK_SIZE
authorAmerigo Wang <amwang@redhat.com>
Fri, 5 Mar 2010 21:44:17 +0000 (13:44 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 6 Mar 2010 19:26:46 +0000 (11:26 -0800)
commitb98b97fe8363ff94dcb0d659c9d79d9eb2c07ca4
treeca689c75666e488d57108da00a1d429305a5771b
parent47f37ea8cbe9eb7c0c19a7096ae5da687f0e9b15
console: limit the range of VGACON_SOFT_SCROLLBACK_SIZE

BuraphaLinux reported that we will trigger a mm warning when we
CONFIG_VGACON_SOFT_SCROLLBACK_SIZE=65536, this is because mm cann't
allocate so many pages.  We should limit the range of
CONFIG_VGACON_SOFT_SCROLLBACK_SIZE, don't give a user any chance to
trigger that.

Reported-by: BuraphaLinux Server <buraphalinuxserver@gmail.com>
Tested-by: BuraphaLinux Server <buraphalinuxserver@gmail.com>
Signed-off-by: WANG Cong <amwang@redhat.com>
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/video/console/Kconfig