diff options
author | mav <mav@FreeBSD.org> | 2014-08-02 23:20:43 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2014-08-02 23:20:43 +0000 |
commit | 7dab858aad63d1b1f2c1131f12c0f128c822f44b (patch) | |
tree | 1077438260964aa1e3d428676bb3f987210c7b15 | |
parent | 31e0173d95a4f399a9954eb9bb37a12f9ffb10de (diff) | |
download | FreeBSD-src-7dab858aad63d1b1f2c1131f12c0f128c822f44b.zip FreeBSD-src-7dab858aad63d1b1f2c1131f12c0f128c822f44b.tar.gz |
Rework r269444 to work also for lists without IDs.
MFC after: 3 days
-rw-r--r-- | sys/cam/ctl/ctl_tpc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/cam/ctl/ctl_tpc.c b/sys/cam/ctl/ctl_tpc.c index 4197287..06263b3 100644 --- a/sys/cam/ctl/ctl_tpc.c +++ b/sys/cam/ctl/ctl_tpc.c @@ -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; |