summaryrefslogtreecommitdiffstats
path: root/include/scsi/fc_encode.h
diff options
context:
space:
mode:
authorJoe Eykholt <jeykholt@cisco.com>2009-11-03 20:48:50 +0100
committerJames Bottomley <James.Bottomley@suse.de>2009-12-04 19:01:15 +0100
commit6049d95a8a223e2dc3a476dea9f0fbc9b580f38f (patch)
tree10781493611d633cba23b2a0d929726ee3434865 /include/scsi/fc_encode.h
parent[SCSI] fcoe: add check to fail gracefully in bonding mode (diff)
downloadlinux-6049d95a8a223e2dc3a476dea9f0fbc9b580f38f.tar.xz
linux-6049d95a8a223e2dc3a476dea9f0fbc9b580f38f.zip
[SCSI] libfc: fix RNN_ID smashing skb payload
The code that filled in the name server RNN_ID (register node name) request had somehow gotten a line in it from the RFT_ID code which copies 32 bytes of data over the relatively short payload. This caused some corruption and hangs. Simply deleted the extraneous line. Signed-off-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>
Diffstat (limited to 'include/scsi/fc_encode.h')
-rw-r--r--include/scsi/fc_encode.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/scsi/fc_encode.h b/include/scsi/fc_encode.h
index 9afcbb94ec30..c8968d31c610 100644
--- a/include/scsi/fc_encode.h
+++ b/include/scsi/fc_encode.h
@@ -134,7 +134,6 @@ static inline int fc_ct_fill(struct fc_lport *lport,
ct = fc_ct_hdr_fill(fp, op, sizeof(struct fc_ns_rn_id));
hton24(ct->payload.rn.fr_fid.fp_fid,
fc_host_port_id(lport->host));
- ct->payload.rft.fts = lport->fcts;
put_unaligned_be64(lport->wwnn, &ct->payload.rn.fr_wwn);
break;