summaryrefslogtreecommitdiffstats
path: root/sys/dev/firewire
diff options
context:
space:
mode:
authorsimokawa <simokawa@FreeBSD.org>2007-03-30 15:43:56 +0000
committersimokawa <simokawa@FreeBSD.org>2007-03-30 15:43:56 +0000
commit83871cf425c75b70c87a7a0b7647087ad4aa0b0f (patch)
tree86148c00fa90f4e7a894445988be9a8666fe96e9 /sys/dev/firewire
parentba1dead5fb684fe6084565ca3ed4ccc616082fe0 (diff)
downloadFreeBSD-src-83871cf425c75b70c87a7a0b7647087ad4aa0b0f.zip
FreeBSD-src-83871cf425c75b70c87a7a0b7647087ad4aa0b0f.tar.gz
Free tlabel in fw_xfer_done().
Diffstat (limited to 'sys/dev/firewire')
-rw-r--r--sys/dev/firewire/firewire.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/firewire/firewire.c b/sys/dev/firewire/firewire.c
index b82cf91..8b6f921 100644
--- a/sys/dev/firewire/firewire.c
+++ b/sys/dev/firewire/firewire.c
@@ -355,7 +355,6 @@ firewire_xfer_timeout(struct firewire_comm *fc)
"split transaction timeout dst=0x%x tl=0x%x state=%d\n",
xfer->send.hdr.mode.hdr.dst, i, xfer->state);
xfer->resp = ETIMEDOUT;
- STAILQ_REMOVE_HEAD(&fc->tlabels[i], link);
fw_xfer_done(xfer);
}
}
@@ -1012,6 +1011,7 @@ fw_xfer_done(struct fw_xfer *xfer)
if (xfer->fc == NULL)
panic("fw_xfer_done: why xfer->fc is NULL?");
+ fw_tl_free(xfer->fc, xfer);
xfer->hand(xfer);
}
@@ -1038,7 +1038,6 @@ fw_xfer_unload(struct fw_xfer* xfer)
*/
printf("fw_xfer_free FWXF_START\n");
#endif
- fw_tl_free(xfer->fc, xfer);
}
xfer->state = FWXF_INIT;
xfer->resp = 0;
OpenPOWER on IntegriCloud