From: Ivo van Doorn Date: Sun, 10 Feb 2008 21:46:52 +0000 (+0100) Subject: rt2x00: Fix invalid DMA free X-Git-Tag: v2.6.26-rc1~1138^2~530^2~50 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9c9dd2c9a42e8eb38b67f6c743c3d214664b8e2b;p=pandora-kernel.git rt2x00: Fix invalid DMA free Be more strict when using the queue_entry_priv_pci_rx and queue_entry_priv_pci_tx structures. Only use a particular type that matches the queue type. When freeing the DMA the priv_tx->data and priv_tx->dma was used. This is incorrect since the start of the DMA was in fact the priv_tx->desc pointer. Instead of recalculating the dma_addr_t for the DMA start this patch will swap the data and descriptor part of the allocated memory. Signed-off-by: Ivo van Doorn Signed-off-by: John W. Linville --- Reading git-diff-tree failed