[SCSI] libfc: fix symbolic name registrations smashing skb data
authorJoe Eykholt <jeykholt@cisco.com>
Tue, 3 Nov 2009 19:48:55 +0000 (11:48 -0800)
committerJames Bottomley <James.Bottomley@suse.de>
Fri, 4 Dec 2009 18:01:16 +0000 (12:01 -0600)
commit5f9a056db9c7973c46337ec8d034323aa72bf206
tree2b61b80ddfcd82fc415856306b791b870e3544d2
parent6049d95a8a223e2dc3a476dea9f0fbc9b580f38f
[SCSI] libfc: fix symbolic name registrations smashing skb data

The strncpy for RSPN_ID and RSNN_NN requests was padding
past the allocated frame size.

Get the string length before filling in the ct header.

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>
include/scsi/fc_encode.h