From: Roland Dreier Date: Tue, 23 Jun 2009 06:07:56 +0000 (-0700) Subject: mlx4_core: Fix dma_sync_single_for_cpu() with matching for_device() calls X-Git-Tag: v2.6.31-rc1~31^2^3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e727f5cde90d5a8b92a1ffa49c636a3790301469;p=pandora-kernel.git mlx4_core: Fix dma_sync_single_for_cpu() with matching for_device() calls Commit 5d23a1d2 ("net: replace dma_sync_single with dma_sync_single_for_cpu") replaced uses of the deprectated function dma_sync_single() with calls to dma_sync_single_for_cpu(). However, to be correct, the code should do a sync for_cpu() before touching the memory and for_device() after it's done. Signed-off-by: Roland Dreier --- Reading git-diff-tree failed