mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-18 03:01:26 +00:00
Consider only enabled targets for rel_tgt_id comparison
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1878 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -2375,6 +2375,9 @@ bool scst_is_relative_target_port_id_unique(uint16_t id,
|
||||
list_for_each_entry(tgt, &tgtt->tgt_list, tgt_list_entry) {
|
||||
if (tgt == t)
|
||||
continue;
|
||||
if ((tgt->tgtt->is_target_enabled != NULL) &&
|
||||
!tgt->tgtt->is_target_enabled(tgt))
|
||||
continue;
|
||||
if (id == tgt->rel_tgt_id) {
|
||||
res = false;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user