aboutsummaryrefslogtreecommitdiff
path: root/drivers/staging/media
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2013-03-18 08:21:33 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-03-25 08:47:21 -0300
commitf43afb1e21ff31243e120401ff34f017d0818998 (patch)
tree6006914b712f91a3f3accd5b45a7b9171064b388 /drivers/staging/media
parentff82ad223d386aa588948931dac5d61f4dae3cfb (diff)
downloadvexpress-lsk-f43afb1e21ff31243e120401ff34f017d0818998.tar.gz
[media] solo6x10: add call to pci_dma_mapping_error
Check the result of the dma mapping. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/staging/media')
-rw-r--r--drivers/staging/media/solo6x10/p2m.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/staging/media/solo6x10/p2m.c b/drivers/staging/media/solo6x10/p2m.c
index b3a933906b9..a77c8d9ed0b 100644
--- a/drivers/staging/media/solo6x10/p2m.c
+++ b/drivers/staging/media/solo6x10/p2m.c
@@ -52,6 +52,8 @@ int solo_p2m_dma(struct solo_dev *solo_dev, int wr,
dma_addr = pci_map_single(solo_dev->pdev, sys_addr, size,
wr ? PCI_DMA_TODEVICE : PCI_DMA_FROMDEVICE);
+ if (pci_dma_mapping_error(solo_dev->pdev, dma_addr))
+ return -ENOMEM;
ret = solo_p2m_dma_t(solo_dev, wr, dma_addr, ext_addr, size,
repeat, ext_size);