Skip to content

Commit

Permalink
[media] solo6x10: add call to pci_dma_mapping_error
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed Mar 25, 2013
1 parent ff82ad2 commit f43afb1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/staging/media/solo6x10/p2m.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f43afb1

Please sign in to comment.