From: Manish Rangankar Date: Tue, 7 Aug 2012 11:57:13 +0000 (-0400) Subject: [SCSI] qla4xxx: Fix memory corruption issue in qla4xxx_ep_connect. X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~38^2^2~145 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d46bdeb14447f0b7e4420c7b1525c8ad9f64ed1b;p=pandora-kernel.git [SCSI] qla4xxx: Fix memory corruption issue in qla4xxx_ep_connect. In qla4xxx_ep_connect(), qla_ep->dst_addr and dst_addr are type struct sockaddr. We are copying sizeof(struct sockaddr_in6) bytes from dst_addr to qla_ep->dst_addr which is 12 bytes larger. This will cause memory corruption. So we change qla_ep->dst_addr to struct sockaddr_storage which is of 128 byte, large enough to hold sizeof(struct sockaddr_in6). Signed-off-by: Manish Rangankar Signed-off-by: Vikas Chaudhary Reviewed-by: Mike Christie Signed-off-by: James Bottomley --- Reading git-diff-tree failed