summaryrefslogtreecommitdiff
path: root/drivers/scsi/libiscsi.c
diff options
context:
space:
mode:
authorMike Christie <michael.christie@oracle.com>2021-05-25 21:18:07 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2021-06-02 08:28:21 +0300
commitbdd4aad7ff92ae39c2e93c415bb6761cb8b584da (patch)
tree29d89250f8ba8f966d9aed6c5801a1b107a20e7c /drivers/scsi/libiscsi.c
parentec29d0ac29be366450a7faffbcf8cba3a6a3b506 (diff)
downloadlinux-bdd4aad7ff92ae39c2e93c415bb6761cb8b584da.tar.xz
scsi: iscsi: Fix shost->max_id use
The iscsi offload drivers are setting the shost->max_id to the max number of sessions they support. The problem is that max_id is not the max number of targets but the highest identifier the targets can have. To use it to limit the number of targets we need to set it to max sessions - 1, or we can end up with a session we might not have preallocated resources for. Link: https://lore.kernel.org/r/20210525181821.7617-15-michael.christie@oracle.com Reviewed-by: Lee Duncan <lduncan@suse.com> Signed-off-by: Mike Christie <michael.christie@oracle.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/libiscsi.c')
0 files changed, 0 insertions, 0 deletions