diff options
author | Alexander Aring <alex.aring@gmail.com> | 2014-03-09 04:51:40 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-03-10 16:03:03 -0400 |
commit | 3772ab1d37bc02ae4fe7cccb8f6540ff49ace8f7 (patch) | |
tree | 692064eea9c36aa8b99e15d188e24637c8b6c03d /net | |
parent | e3ca64948b50d05304a33ad8c4332e2a748e9401 (diff) |
6lowpan: reassembly: fix access of ctl table entry
Correct offset is 3 of the 6lowpanfrag_max_datagram_size value in proc
entry ctl table and not 2.
Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/ieee802154/reassembly.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ieee802154/reassembly.c b/net/ieee802154/reassembly.c index bf06492e7d19..f4ac95778977 100644 --- a/net/ieee802154/reassembly.c +++ b/net/ieee802154/reassembly.c | |||
@@ -441,7 +441,7 @@ static int __net_init lowpan_frags_ns_sysctl_register(struct net *net) | |||
441 | table[0].data = &net->ieee802154_lowpan.frags.high_thresh; | 441 | table[0].data = &net->ieee802154_lowpan.frags.high_thresh; |
442 | table[1].data = &net->ieee802154_lowpan.frags.low_thresh; | 442 | table[1].data = &net->ieee802154_lowpan.frags.low_thresh; |
443 | table[2].data = &net->ieee802154_lowpan.frags.timeout; | 443 | table[2].data = &net->ieee802154_lowpan.frags.timeout; |
444 | table[2].data = &net->ieee802154_lowpan.max_dsize; | 444 | table[3].data = &net->ieee802154_lowpan.max_dsize; |
445 | 445 | ||
446 | /* Don't export sysctls to unprivileged users */ | 446 | /* Don't export sysctls to unprivileged users */ |
447 | if (net->user_ns != &init_user_ns) | 447 | if (net->user_ns != &init_user_ns) |