Commit a52712af authored by Amerigo Wang's avatar Amerigo Wang Committed by Linus Torvalds

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: default avatarBuraphaLinux Server <buraphalinuxserver@gmail.com>
Tested-by: default avatarBuraphaLinux Server <buraphalinuxserver@gmail.com>
Signed-off-by: default avatarWANG Cong <amwang@redhat.com>
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 76595f79
...@@ -37,6 +37,7 @@ config VGACON_SOFT_SCROLLBACK ...@@ -37,6 +37,7 @@ config VGACON_SOFT_SCROLLBACK
config VGACON_SOFT_SCROLLBACK_SIZE config VGACON_SOFT_SCROLLBACK_SIZE
int "Scrollback Buffer Size (in KB)" int "Scrollback Buffer Size (in KB)"
depends on VGACON_SOFT_SCROLLBACK depends on VGACON_SOFT_SCROLLBACK
range 1 1024
default "64" default "64"
help help
Enter the amount of System RAM to allocate for the scrollback Enter the amount of System RAM to allocate for the scrollback
......
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