6lowpan: reassembly: fix access of ctl table entry
authorAlexander Aring <alex.aring@gmail.com>
Sun, 9 Mar 2014 08:51:40 +0000 (09:51 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 10 Mar 2014 20:03:03 +0000 (16:03 -0400)
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>
net/ieee802154/reassembly.c

index bf06492e7d192463f706ab49d71b0584af20739e..f4ac95778977176ad25a126d831e97cc2f830e70 100644 (file)
@@ -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)