From: Alan Cox Date: Fri, 5 Jun 2009 10:56:18 +0000 (+0100) Subject: ivtv: Fix PCI DMA direction X-Git-Tag: v2.6.30~25 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e9e10124e269a39de089c5e0d9936fae2ff889b2;p=pandora-kernel.git ivtv: Fix PCI DMA direction The ivtv stream buffers may be for receive or for send but the attached sg handle is always destined cpu->device. We flush it correctly but the allocation is wrongly done with the same type as the buffers. See bug: http://bugzilla.kernel.org/show_bug.cgi?id=13385 (Note this doesn't close the bug - it fixes the ivtv part and in turn the logging next shows up some rather alarming DMA sg list warnings in libata) Signed-off-by: Alan Cox Acked-by: Hans Verkuil Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed