From afb9eb67e2cada491999bc9223b413ffd6d32de4 Mon Sep 17 00:00:00 2001 From: simokawa Date: Mon, 3 Feb 2003 07:33:31 +0000 Subject: - 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(). --- sys/dev/firewire/fwmem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/dev/firewire/fwmem.c') 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; -- cgit v1.1