Prechádzať zdrojové kódy

allow LEGACY_PTYS to be set to 0

The count of legacy pty devices can be set by a kernel commandline
parameter. For the distro kernel, we would like to disable all pty's
by default, but keep the opportunity to request devices on the kernel
commandline.

Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Acked-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Kay Sievers 17 rokov pred
rodič
commit
345ee8392d
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      drivers/char/Kconfig

+ 1 - 1
drivers/char/Kconfig

@@ -457,7 +457,7 @@ config LEGACY_PTYS
 config LEGACY_PTY_COUNT
 config LEGACY_PTY_COUNT
 	int "Maximum number of legacy PTY in use"
 	int "Maximum number of legacy PTY in use"
 	depends on LEGACY_PTYS
 	depends on LEGACY_PTYS
-	range 1 256
+	range 0 256
 	default "256"
 	default "256"
 	---help---
 	---help---
 	  The maximum number of legacy PTYs that can be used at any one time.
 	  The maximum number of legacy PTYs that can be used at any one time.