summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/media/video/mxc/output/mxc_vout.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/media/video/mxc/output/mxc_vout.c b/drivers/media/video/mxc/output/mxc_vout.c
index 5f1deeeff76b..9d9be79dbb99 100644
--- a/drivers/media/video/mxc/output/mxc_vout.c
+++ b/drivers/media/video/mxc/output/mxc_vout.c
@@ -965,9 +965,12 @@ static inline int vdoaipu_try_task(struct mxc_vout_output *vout)
vout->vdoa_dma.vaddr = dma_alloc_coherent(vout->vbq.dev,
vout->vdoa_dma.size,
&vout->vdoa_dma.paddr,
- GFP_DMA | GFP_KERNEL);
- if (!vout->vdoa_dma.vaddr)
+ GFP_KERNEL);
+ if (!vout->vdoa_dma.vaddr) {
+ v4l2_err(vout->vfd->v4l2_dev,
+ "cannot get vdoa dma buf size:0x%x\n", size);
return -ENOMEM;
+ }
v4l2_dbg(1, debug, vout->vfd->v4l2_dev,
"alloc vdoa_dma.size:0x%x, paddr:0x%x\n",
vout->vdoa_dma.size,