aboutsummaryrefslogtreecommitdiffstats
path: root/net/sctp/sysctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/sctp/sysctl.c')
-rw-r--r--net/sctp/sysctl.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/net/sctp/sysctl.c b/net/sctp/sysctl.c
index 26d50c565f54..daf8554fd42a 100644
--- a/net/sctp/sysctl.c
+++ b/net/sctp/sysctl.c
@@ -308,6 +308,13 @@ static struct ctl_table sctp_net_table[] = {
308 .extra1 = &max_autoclose_min, 308 .extra1 = &max_autoclose_min,
309 .extra2 = &max_autoclose_max, 309 .extra2 = &max_autoclose_max,
310 }, 310 },
311 {
312 .procname = "pf_enable",
313 .data = &init_net.sctp.pf_enable,
314 .maxlen = sizeof(int),
315 .mode = 0644,
316 .proc_handler = proc_dointvec,
317 },
311 318
312 { /* sentinel */ } 319 { /* sentinel */ }
313}; 320};
@@ -320,7 +327,7 @@ static int proc_sctp_do_hmac_alg(struct ctl_table *ctl, int write,
320 struct ctl_table tbl; 327 struct ctl_table tbl;
321 bool changed = false; 328 bool changed = false;
322 char *none = "none"; 329 char *none = "none";
323 char tmp[8]; 330 char tmp[8] = {0};
324 int ret; 331 int ret;
325 332
326 memset(&tbl, 0, sizeof(struct ctl_table)); 333 memset(&tbl, 0, sizeof(struct ctl_table));