Skip to content
Commit a52712af authored by Amerigo Wang's avatar Amerigo Wang Committed by Linus Torvalds
Browse files

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
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment