diff options
author | Alexander Aring <alex.aring@gmail.com> | 2014-06-29 07:10:18 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-07-02 21:34:25 -0400 |
commit | 48bc03433cfdcac7a3bbb233d5c9f95297a0f5ab (patch) | |
tree | 00253fc8e068a52b7acecdf572ae35d9d0285223 /include/net/netns | |
parent | 98846e698d99533321f39fe5b7df06c1b02a5e66 (diff) |
ieee802154: reassembly: fix possible buffer overflow
The max_dsize attribute in ctl_table for lowpan_frags_ns_ctl_table is
configured with integer accessing methods. This patch change the
max_dsize attribute to int to avoid a possible buffer overflow.
Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/netns')
-rw-r--r-- | include/net/netns/ieee802154_6lowpan.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/netns/ieee802154_6lowpan.h b/include/net/netns/ieee802154_6lowpan.h index 079030c853d8..e2070960bac0 100644 --- a/include/net/netns/ieee802154_6lowpan.h +++ b/include/net/netns/ieee802154_6lowpan.h | |||
@@ -16,7 +16,7 @@ struct netns_sysctl_lowpan { | |||
16 | struct netns_ieee802154_lowpan { | 16 | struct netns_ieee802154_lowpan { |
17 | struct netns_sysctl_lowpan sysctl; | 17 | struct netns_sysctl_lowpan sysctl; |
18 | struct netns_frags frags; | 18 | struct netns_frags frags; |
19 | u16 max_dsize; | 19 | int max_dsize; |
20 | }; | 20 | }; |
21 | 21 | ||
22 | #endif | 22 | #endif |