diff options
author | Sergey Gorenko <sergeygo@nvidia.com> | 2022-06-13 14:38:54 +0200 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2022-06-14 04:11:36 +0200 |
commit | f6eed15f3ea76596ccc689331e1cc850b999133b (patch) | |
tree | dc729d2ffaf87139a7aa9f79c5b324442f61f1ef /drivers/scsi/vmw_pvscsi.c | |
parent | scsi: scsi_debug: Fix zone transition to full condition (diff) | |
download | linux-f6eed15f3ea76596ccc689331e1cc850b999133b.tar.xz linux-f6eed15f3ea76596ccc689331e1cc850b999133b.zip |
scsi: iscsi: Exclude zero from the endpoint ID range
The kernel returns an endpoint ID as r.ep_connect_ret.handle in the
iscsi_uevent. The iscsid validates a received endpoint ID and treats zero
as an error. The commit referenced in the fixes line changed the endpoint
ID range, and zero is always assigned to the first endpoint ID. So, the
first attempt to create a new iSER connection always fails.
Link: https://lore.kernel.org/r/20220613123854.55073-1-sergeygo@nvidia.com
Fixes: 3c6ae371b8a1 ("scsi: iscsi: Release endpoint ID when its freed")
Reviewed-by: Max Gurtovoy <mgurtovoy@nvidia.com>
Reviewed-by: Mike Christie <michael.christie@oracle.com>
Reviewed-by: Lee Duncan <lduncan@suse.com>
Signed-off-by: Sergey Gorenko <sergeygo@nvidia.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/vmw_pvscsi.c')
0 files changed, 0 insertions, 0 deletions