diff options
author | Jeff Layton <jlayton@redhat.com> | 2009-01-22 10:35:13 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-02-06 14:00:34 -0800 |
commit | b7b448e662a938360e546d22665c81ab62f6365a (patch) | |
tree | 1db8df43b2cdf45ea8d96618b6a82aeedbbaf8c4 /drivers/net | |
parent | 04739ab606d5cd9dfa8e96eeea274bf62f40c328 (diff) |
cifs: make sure we allocate enough storage for socket address
commit a9ac49d303f967be0dabd97cb722c4a13109c6c2 upstream.
cifs_mount declares a struct sockaddr on the stack and then casts it
to the proper address type. The storage allocated is fine for ipv4,
but is too small for ipv6 addresses. Declare it as
"struct sockaddr_storage" instead of struct sockaddr".
This bug was manifesting itself as oopses and address corruption when
mounting IPv6 addresses.
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Tested-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/net')
0 files changed, 0 insertions, 0 deletions