From: Brian Haley Date: Sun, 12 Mar 2006 02:50:14 +0000 (-0800) Subject: [IPV6]: fix ipv6_saddr_score struct element X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=0d27b42739ee432a66104793e51a23807b372928;p=linux-beck.git [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: Brian Haley Acked-by: YOSHIFUJI Hideaki Signed-off-by: David S. Miller --- diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c index b7d8822c1be4..19727d941962 100644 --- a/net/ipv6/addrconf.c +++ b/net/ipv6/addrconf.c @@ -822,7 +822,7 @@ struct ipv6_saddr_score { int addr_type; unsigned int attrs; int matchlen; - unsigned int scope; + int scope; unsigned int rule; };