diff options
author | YOSHIFUJI Hideaki / 吉藤英明 <yoshfuji@linux-ipv6.org> | 2012-12-13 05:29:36 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-12-13 18:58:11 +0100 |
commit | 7bdc1b4abab3af0a803300f706c9814ef4e20a3e (patch) | |
tree | 6609b090de8aca06d7fb19c374ee3c90917ccd1c /net/sysctl_net.c | |
parent | tuntap: dont use skb after netif_rx_ni(skb) (diff) | |
download | linux-7bdc1b4abab3af0a803300f706c9814ef4e20a3e.tar.xz linux-7bdc1b4abab3af0a803300f706c9814ef4e20a3e.zip |
ndisc: Fix padding error in link-layer address option.
If a natural number n exists where 2 + data_len <= 8n < 2 + data_len + pad,
post padding is not initialized correctly.
(Un)fortunately, the only type that requires pad is Infiniband,
whose pad is 2 and data_len is 20, and this logical error has not
become obvious, but it is better to fix.
Note that ndisc_opt_addr_space() handles the situation described
above correctly.
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sysctl_net.c')
0 files changed, 0 insertions, 0 deletions