From: Jeff Layton Date: Thu, 22 Jan 2009 19:43:21 +0000 (-0500) Subject: cifs: make sure we allocate enough storage for socket address X-Git-Tag: v2.6.29-rc4~93^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a9ac49d303f967be0dabd97cb722c4a13109c6c2;p=pandora-kernel.git cifs: make sure we allocate enough storage for socket address The sockaddr declared on the stack in cifs_get_tcp_session is too small for IPv6 addresses. Change it from "struct sockaddr" to "struct sockaddr_storage" to prevent stack corruption when IPv6 is used. Signed-off-by: Jeff Layton Signed-off-by: Steve French --- Reading git-diff-tree failed