firewire: fw-ohci: fix IOMMU resource exhaustion
authorStefan Richter <stefanr@s5r6.in-berlin.de>
Tue, 16 Dec 2008 19:34:23 +0000 (20:34 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 18 Dec 2008 17:13:38 +0000 (09:13 -0800)
commitbc7c91468b80aab044dd9dd61c3492cf57dffabb
tree2221285ea974838f2a26705ee293da9c3a8bec07
parent123cd635a810bea55c41f09c09e4d6dc1f493876
firewire: fw-ohci: fix IOMMU resource exhaustion

commit 1d1dc5e83f3299c108a4e44d58cc4bfef48c876a upstream.

There is a DMA map/ unmap imbalance whenever a block write request
packet is sent and then dequeued with ohci_cancel_packet.  The latter
may happen frequently if the AR resp tasklet is executed before the AT
req tasklet for the same transaction.

Add the missing dma_unmap_single.  This fixes
https://bugzilla.redhat.com/show_bug.cgi?id=475156

Reported-by: Emmanuel Kowalski
Tested-by: Emmanuel Kowalski
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/firewire/fw-ohci.c
drivers/firewire/fw-transaction.c
drivers/firewire/fw-transaction.h