diff options
author | Jitendra Bhivare <jitendra.bhivare@broadcom.com> | 2016-12-13 15:56:03 +0530 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2017-01-05 00:21:13 -0500 |
commit | 413f365657a8b9669bd0ba3628e9fde9ce63604e (patch) | |
tree | 905d5ef41f0c20ef0021aff2e492b6cbefbcad11 /drivers/scsi/libiscsi_tcp.c | |
parent | 29e80b7ce36ffcc3efd6062d87ddaf6c6f43a542 (diff) | |
download | blackbird-op-linux-413f365657a8b9669bd0ba3628e9fde9ce63604e.tar.gz blackbird-op-linux-413f365657a8b9669bd0ba3628e9fde9ce63604e.zip |
scsi: be2iscsi: Add checks to validate CID alloc/free
Set CID slot to 0xffff to indicate empty.
Check if connection already exists in conn_table before binding.
Check if endpoint already NULL before putting back CID.
Break ep->conn link in free_ep to ignore completions after freeing.
Signed-off-by: Jitendra Bhivare <jitendra.bhivare@broadcom.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/libiscsi_tcp.c')
0 files changed, 0 insertions, 0 deletions