diff options
author | Manish Rangankar <manish.rangankar@qlogic.com> | 2012-11-23 06:58:40 -0500 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2013-01-28 21:55:07 -0500 |
commit | 3dd4849c257af317cd33bcecf7d17b75dabf7540 (patch) | |
tree | a2f895a43a194d27fc3d3365ee25614ed67a69e9 /drivers/scsi/scsi_transport_iscsi.c | |
parent | ad5da8c404858bf573c394d66b73b43a8e0fe5fc (diff) |
[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 <dan.carpenter@oracle.com>
Signed-off-by: Manish Rangankar <manish.rangankar@qlogic.com>
Signed-off-by: Vikas Chaudhary <vikas.chaudhary@qlogic.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/scsi_transport_iscsi.c')
0 files changed, 0 insertions, 0 deletions