]> git.proxmox.com Git - mirror_ubuntu-hirsute-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)
commit169622eee4373d98172647a1efad24e8fcd94e1b
treee7fcf6c22ee1724188ccae03c333eecc3e05d248
parentf32ba612ef0f8eecaf6d2a5b04076ee7ea9ed039
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