提交 0d27b427 编写于 作者: B Brian Haley 提交者: David S. Miller

[IPV6]: fix ipv6_saddr_score struct element

The scope element in the ipv6_saddr_score struct used in 
ipv6_dev_get_saddr() is an unsigned integer, but __ipv6_addr_src_scope() 
returns a signed integer (and can return -1).
Signed-off-by: NBrian Haley <brian.haley@hp.com>
Acked-by: NYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 0ade309b
...@@ -822,7 +822,7 @@ struct ipv6_saddr_score { ...@@ -822,7 +822,7 @@ struct ipv6_saddr_score {
int addr_type; int addr_type;
unsigned int attrs; unsigned int attrs;
int matchlen; int matchlen;
unsigned int scope; int scope;
unsigned int rule; unsigned int rule;
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册