[SCSI] libfcoe: VN2VN connection setup causing stack memory corruption.
authorKiran Patil <kiran.patil@intel.com>
Sat, 9 Oct 2010 00:12:41 +0000 (17:12 -0700)
committerJames Bottomley <James.Bottomley@suse.de>
Mon, 25 Oct 2010 20:11:38 +0000 (15:11 -0500)
commit2dc02ee52f32aac6d8dd1172f104dc30ae1051bb
tree8b2e4bfa396355bde204d71b011d87049ee5f025
parentc531b9b49b146e1535dbed006d15e58f4f528f7e
[SCSI] libfcoe: VN2VN connection setup causing stack memory corruption.

Fix: When FIP frame is received, function fcoe_ctlr_vn_recv calls function
fcoe_ctlr_vn_parse which does memset for addr (&buf.rdata) which leads to
memory corruption. Code was trying to treat "buf" as struct but it was defined
as union. Fix is to change from union to struct for "buf" in function fcoe_ctlr_vn_recv.

Technical Details: N/A

Signed-off-by: Kiran Patil <kiran.patil@intel.com>
Acked-by: Joe Eykholt <jeykholt@cisco.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/fcoe/libfcoe.c