Skip to content

Commit

Permalink
6lowpan: reassembly: fix access of ctl table entry
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alexander Aring authored and David S. Miller committed Mar 10, 2014
1 parent e3ca649 commit 3772ab1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/ieee802154/reassembly.c
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ static int __net_init lowpan_frags_ns_sysctl_register(struct net *net)
table[0].data = &net->ieee802154_lowpan.frags.high_thresh;
table[1].data = &net->ieee802154_lowpan.frags.low_thresh;
table[2].data = &net->ieee802154_lowpan.frags.timeout;
table[2].data = &net->ieee802154_lowpan.max_dsize;
table[3].data = &net->ieee802154_lowpan.max_dsize;

/* Don't export sysctls to unprivileged users */
if (net->user_ns != &init_user_ns)
Expand Down

0 comments on commit 3772ab1

Please sign in to comment.