]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: target: Fix iscsi transport id parsing
authorMike Christie <michael.christie@oracle.com>
Thu, 2 Jul 2020 01:43:20 +0000 (20:43 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 8 Jul 2020 04:14:34 +0000 (00:14 -0400)
commitb2308189c6bc474203e9b1815253cf6c2248339b
treee7fcf6c22ee1724188ccae03c333eecc3e05d248
parentf1613dfaa6f054faa1e2d2c11606cb1f8fc5f7c0
scsi: target: Fix iscsi transport id parsing

The length passed in the ADDITIONAL LENGTH field includes padding and the
terminating NULL for the last field (name or isid depending on the format),
so we should not also try to calculate that and then double add that to the
returned length.

Link: https://lore.kernel.org/r/1593654203-12442-5-git-send-email-michael.christie@oracle.com
Signed-off-by: Mike Christie <michael.christie@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/target/target_core_fabric_lib.c