OSDN Git Service

net: xfrm: Change u32 sysctl entries to use proc_douintvec
authorsubashab@codeaurora.org <subashab@codeaurora.org>
Wed, 7 Sep 2016 00:09:31 +0000 (18:09 -0600)
committerDavid S. Miller <davem@davemloft.net>
Thu, 8 Sep 2016 06:17:53 +0000 (23:17 -0700)
proc_dointvec limits the values to INT_MAX in u32 sysctl entries.
proc_douintvec allows to write upto UINT_MAX.

Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/xfrm/xfrm_sysctl.c

index 05a6e3d..35a7e79 100644 (file)
@@ -17,13 +17,13 @@ static struct ctl_table xfrm_table[] = {
                .procname       = "xfrm_aevent_etime",
                .maxlen         = sizeof(u32),
                .mode           = 0644,
-               .proc_handler   = proc_dointvec
+               .proc_handler   = proc_douintvec
        },
        {
                .procname       = "xfrm_aevent_rseqth",
                .maxlen         = sizeof(u32),
                .mode           = 0644,
-               .proc_handler   = proc_dointvec
+               .proc_handler   = proc_douintvec
        },
        {
                .procname       = "xfrm_larval_drop",