From: Jeff Layton Date: Tue, 2 Jun 2009 10:55:20 +0000 (-0400) Subject: cifs: fix IPv6 address length check X-Git-Tag: v2.6.31-rc1~394^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=50b64e3b77d569c217a48e078cd565dbd6462ad0;p=pandora-kernel.git cifs: fix IPv6 address length check For IPv6 the userspace mount helper sends an address in the "ip=" option. This check fails if the length is > 35 characters. I have no idea where the magic 35 character limit came from, but it's clearly not enough for IPv6. Fix it by making it use the INET6_ADDRSTRLEN #define. While we're at it, use the same #define for the address length in SPNEGO upcalls. Reported-by: Charles R. Anderson Signed-off-by: Jeff Layton Signed-off-by: Steve French --- Reading git-diff-tree failed