diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv6/ndisc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/ndisc.c b/net/ipv6/ndisc.c index 4c02e6ab96e..f2a007b7bde 100644 --- a/net/ipv6/ndisc.c +++ b/net/ipv6/ndisc.c | |||
@@ -151,8 +151,8 @@ static inline int ndisc_opt_addr_space(struct net_device *dev) | |||
151 | static u8 *ndisc_fill_addr_option(u8 *opt, int type, void *data, int data_len, | 151 | static u8 *ndisc_fill_addr_option(u8 *opt, int type, void *data, int data_len, |
152 | unsigned short addr_type) | 152 | unsigned short addr_type) |
153 | { | 153 | { |
154 | int space = NDISC_OPT_SPACE(data_len); | ||
155 | int pad = ndisc_addr_option_pad(addr_type); | 154 | int pad = ndisc_addr_option_pad(addr_type); |
155 | int space = NDISC_OPT_SPACE(data_len + pad); | ||
156 | 156 | ||
157 | opt[0] = type; | 157 | opt[0] = type; |
158 | opt[1] = space>>3; | 158 | opt[1] = space>>3; |