drm/radeon: Fix pci_map_page() error checking
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 10 Aug 2010 04:48:58 +0000 (14:48 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 11 Aug 2010 23:38:29 +0000 (09:38 +1000)
commita30f6fb7ce86275af16c7a00dc1b1e46cbb99692
tree2097765b7dd20577bca52781d7f216c9d1829244
parent1a72d65d6291ec248cbc5f05df2487edd714aba6
drm/radeon: Fix pci_map_page() error checking

0 is a valid DMA address from pci_map_page(), use pci_dma_mapping_error()
instead to check for errors

[airlied: fix warning + two other places with errors.]

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/ati_pcigart.c
drivers/gpu/drm/radeon/r600_cp.c
drivers/gpu/drm/radeon/radeon_device.c