From: Brian Haley Date: Sun, 12 Mar 2006 02:50:14 +0000 (-0800) Subject: [IPV6]: fix ipv6_saddr_score struct element X-Git-Tag: v2.6.16~60 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=0d27b42739ee432a66104793e51a23807b372928;p=linux-2.6-omap-h63xx.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 b7d8822c1be..19727d94196 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; };