From: Nickolai Zeldovich Date: Thu, 17 Jan 2013 02:36:17 +0000 (-0500) Subject: cifs: fix srcip_matches() for ipv6 X-Git-Tag: v3.8-rc5~2^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e3e2775cedc9d6294b7bc7cbe9f59c62f9472871;p=pandora-kernel.git cifs: fix srcip_matches() for ipv6 srcip_matches() previously had code like this: srcip_matches(..., struct sockaddr *rhs) { /* ... */ struct sockaddr_in6 *vaddr6 = (struct sockaddr_in6 *) &rhs; return ipv6_addr_equal(..., &vaddr6->sin6_addr); } which interpreted the values on the stack after the 'rhs' pointer as an ipv6 address. The correct thing to do is to use 'rhs', not '&rhs'. Signed-off-by: Nickolai Zeldovich Reviewed-by: Jeff Layton Signed-off-by: Steve French --- Reading git-diff-tree failed