diff options
author | Jeff Layton <jlayton@redhat.com> | 2011-02-16 14:34:16 (GMT) |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2011-02-17 05:35:33 (GMT) |
commit | 9616125611ee47693186533d76e403856a36b3c8 (patch) | |
tree | 4bbeff100868bd97bb1eea660838fde851602441 /.mailmap | |
parent | a2640111d5edb3f4e6dd6089c0dbddc7590110b4 (diff) | |
download | linux-fsl-qoriq-9616125611ee47693186533d76e403856a36b3c8.tar.xz |
cifs: fix handling of scopeid in cifs_convert_address
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: stable@kernel.org
Cc: David Howells <dhowells@redhat.com>
Reported-by: Björn JACKE <bj@sernet.de>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to '.mailmap')
0 files changed, 0 insertions, 0 deletions