From: Michael Ellerman Date: Thu, 1 Sep 2005 01:29:07 +0000 (+1000) Subject: [PATCH] iseries_veth: Only call dma_unmap_single() if dma_map_single() succeeded X-Git-Tag: v2.6.14-rc1~1018^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cbf9074cc30ca0eee19c9bd7304faf9f1beb1e76;p=pandora-kernel.git [PATCH] iseries_veth: Only call dma_unmap_single() if dma_map_single() succeeded The iseries_veth driver unconditionally calls dma_unmap_single() even when the corresponding dma_map_single() may have failed. Rework the code a bit to keep the return value from dma_unmap_single() around, and then check if it's a dma_mapping_error() before we do the dma_unmap_single(). Signed-off-by: Michael Ellerman Signed-off-by: Jeff Garzik --- Reading git-diff-tree failed