]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit8b03f1ba3cd5442443a4488c971f2b69d24412d7
tree2b61b80ddfcd82fc415856306b791b870e3544d2
parentd72a181700216d8ef0e7e8bd0e26f2b66e9b55b3
[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