Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dccp: make the request_retries minimum is 1

In Documentation/networking/dccp.txt points that request_retries
should be greater than 0. So make the extra1 to be &one instead
of &zero.

Signed-off-by: Wang Weidong <wangweidong1@huawei.com>
Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

wangweidong and committed by
David S. Miller
8ba7e7bf c9f2dba6

+2 -1
+2 -1
net/dccp/sysctl.c
··· 20 20 21 21 /* Boundary values */ 22 22 static int zero = 0, 23 + one = 1, 23 24 u8_max = 0xFF; 24 25 static unsigned long seqw_min = DCCPF_SEQ_WMIN, 25 26 seqw_max = 0xFFFFFFFF; /* maximum on 32 bit */ ··· 59 58 .maxlen = sizeof(sysctl_dccp_request_retries), 60 59 .mode = 0644, 61 60 .proc_handler = proc_dointvec_minmax, 62 - .extra1 = &zero, 61 + .extra1 = &one, 63 62 .extra2 = &u8_max, 64 63 }, 65 64 {