Commit 635a9fc
tty: ldsic: fix tty_ldisc_autoload sysctl's proc_handler
Commit 7c0cca7 ("tty: ldisc: add sysctl to prevent autoloading of
ldiscs") introduces the tty_ldisc_autoload sysctl with the wrong
proc_handler. .extra1 and .extra2 parameters are set to avoid other values
thant SYSCTL_ZERO or SYSCTL_ONE to be set but proc_dointvec do not uses
them.
This commit fixes this by using proc_dointvec_minmax instead of
proc_dointvec.
Fixes: 7c0cca7 ("tty: ldisc: add sysctl to prevent autoloading of ldiscs")
Cc: stable <[email protected]>
Signed-off-by: Nicolas Bouchinet <[email protected]>
Reviewed-by: Lin Feng <[email protected]>
Reviewed-by: Jiri Slaby <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>1 parent 166105c commit 635a9fc
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3631 | 3631 | | |
3632 | 3632 | | |
3633 | 3633 | | |
3634 | | - | |
| 3634 | + | |
3635 | 3635 | | |
3636 | 3636 | | |
3637 | 3637 | | |
| |||
0 commit comments