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

The isid returned to the initiator is in string format which is 12
bytes. We also only add 1 terminating NULL and not one after the initiator
name and another one after the isid.

Link: https://lore.kernel.org/r/1593654203-12442-7-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