mirror of
https://github.com/opnsense/src.git
synced 2026-06-03 22:02:58 -04:00
Rework r269444 to work also for lists without IDs.
MFC after: 3 days
This commit is contained in:
parent
dd973b0e15
commit
c5c6059574
1 changed files with 2 additions and 2 deletions
|
|
@ -942,14 +942,14 @@ tpc_process(struct tpc_list *list)
|
|||
|
||||
done:
|
||||
//printf("ZZZ done\n");
|
||||
free(list->params, M_CTL);
|
||||
list->params = NULL;
|
||||
mtx_lock(&lun->lun_lock);
|
||||
if ((list->flags & EC_LIST_ID_USAGE_MASK) == EC_LIST_ID_USAGE_NONE) {
|
||||
TAILQ_REMOVE(&lun->tpc_lists, list, links);
|
||||
free(list, M_CTL);
|
||||
} else {
|
||||
list->completed = 1;
|
||||
free(list->params, M_CTL);
|
||||
list->params = NULL;
|
||||
list->sense_data = ctsio->sense_data;
|
||||
list->sense_len = ctsio->sense_len;
|
||||
list->scsi_status = ctsio->scsi_status;
|
||||
|
|
|
|||
Loading…
Reference in a new issue