summaryrefslogtreecommitdiffstats
path: root/sys/dev/firewire/fwmem.c
diff options
context:
space:
mode:
authorsimokawa <simokawa@FreeBSD.org>2003-02-03 07:33:31 +0000
committersimokawa <simokawa@FreeBSD.org>2003-02-03 07:33:31 +0000
commitafb9eb67e2cada491999bc9223b413ffd6d32de4 (patch)
tree6c767b449cd12bf15b57f8a07b115bd932661805 /sys/dev/firewire/fwmem.c
parent3fe8dc7ecfb88fd252d48b18419c1fcb38ec825c (diff)
downloadFreeBSD-src-afb9eb67e2cada491999bc9223b413ffd6d32de4.zip
FreeBSD-src-afb9eb67e2cada491999bc9223b413ffd6d32de4.tar.gz
- Take malloc type as an argument in fw_xfer_alloc().
- Fix overwrite problem of freed buffers. It was rare but could happen when fwohci_arcv() is called before fwohci_txd() is called for the transcation. - Drain AT queues and pend AR queues on SID receive rather than BUS reset to make sure DMA actually stops. - Do agent reset in sbp_timeout().
Diffstat (limited to 'sys/dev/firewire/fwmem.c')
-rw-r--r--sys/dev/firewire/fwmem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/firewire/fwmem.c b/sys/dev/firewire/fwmem.c
index 2f59253..b755dd2 100644
--- a/sys/dev/firewire/fwmem.c
+++ b/sys/dev/firewire/fwmem.c
@@ -81,7 +81,7 @@ fwmem_xfer_req(
{
struct fw_xfer *xfer;
- xfer = fw_xfer_alloc();
+ xfer = fw_xfer_alloc(M_FWXFER);
if (xfer == NULL)
return NULL;
OpenPOWER on IntegriCloud