From: Jeff Layton Date: Wed, 16 Feb 2011 14:34:16 +0000 (-0500) Subject: cifs: fix handling of scopeid in cifs_convert_address X-Git-Tag: v2.6.37.2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=288cfb1763afea7a7ddb4c4d9a2868070fbab4a3;p=pandora-kernel.git cifs: fix handling of scopeid in cifs_convert_address commit 9616125611ee47693186533d76e403856a36b3c8 upstream. The code finds, the '%' sign in an ipv6 address and copies that to a buffer allocated on the stack. It then ignores that buffer, and passes 'pct' to simple_strtoul(), which doesn't work right because we're comparing 'endp' against a completely different string. Fix it by passing the correct pointer. While we're at it, this is a good candidate for conversion to strict_strtoul as well. Cc: David Howells Reported-by: Björn JACKE Signed-off-by: Jeff Layton Signed-off-by: Steve French Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed