commit | cbf9074cc30ca0eee19c9bd7304faf9f1beb1e76 | [log] [tgz] |
---|---|---|
author | Michael Ellerman <michael@ellerman.id.au> | Thu Sep 01 11:29:07 2005 +1000 |
committer | Jeff Garzik <jgarzik@pobox.com> | Wed Aug 31 22:39:43 2005 -0400 |
tree | f3d0133df8c9a46135148e34b0a553849153c04f | |
parent | b08bd5c0a3110f143faeef9cd057d9d8ff2f0714 [diff] |
[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 <michael@ellerman.id.au> Signed-off-by: Jeff Garzik <jgarzik@pobox.com>