From: Manish Rangankar Date: Fri, 23 Nov 2012 11:58:40 +0000 (-0500) Subject: [SCSI] qla4xxx: Fix memory corruption issue in qla4xxx_get_ep_fwdb. X-Git-Tag: v3.9-rc1~45^2~56 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3dd4849c257af317cd33bcecf7d17b75dabf7540;p=pandora-kernel.git [SCSI] qla4xxx: Fix memory corruption issue in qla4xxx_get_ep_fwdb. In qla4xxx_get_ep_fwdb(), dst_addr is of type struct sockaddr. We are copying sizeof(struct sockaddr_in6) bytes to dst_addr which is 12 bytes larger. This will cause memory corruption. So we change dst_addr to struct sockaddr_storage which is of 128 byte, large enough to hold sizeof(struct sockaddr_in6). Reported-by: Dan Carpenter Signed-off-by: Manish Rangankar Signed-off-by: Vikas Chaudhary Signed-off-by: James Bottomley --- Reading git-diff-tree failed