summaryrefslogtreecommitdiffstats
path: root/drivers/media/video/videobuf-dma-sg.c
diff options
context:
space:
mode:
authorFigo.zhang2009-06-11 04:17:27 +0200
committerMauro Carvalho Chehab2009-06-17 00:07:34 +0200
commit92051b285b12855255f0213d9a25153d917e262c (patch)
treeb39e44425e54b51a6497a34d823463344f42d6f8 /drivers/media/video/videobuf-dma-sg.c
parentV4L/DVB (11951): cx18: Add DVB-T support for the Leadtek WinFast DVR3100 H (diff)
downloadkernel-qcow2-linux-92051b285b12855255f0213d9a25153d917e262c.tar.gz
kernel-qcow2-linux-92051b285b12855255f0213d9a25153d917e262c.tar.xz
kernel-qcow2-linux-92051b285b12855255f0213d9a25153d917e262c.zip
V4L/DVB (11953): videobuf-dma-sg: return -ENOMEM if vmalloc fails
it is better return -ENOMEM than -EIO Signed-off-by: Figo.zhang <figo1802@gmail.com> Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/videobuf-dma-sg.c')
-rw-r--r--drivers/media/video/videobuf-dma-sg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/videobuf-dma-sg.c b/drivers/media/video/videobuf-dma-sg.c
index c9a5d7edbe4e..a8dd22ace3fb 100644
--- a/drivers/media/video/videobuf-dma-sg.c
+++ b/drivers/media/video/videobuf-dma-sg.c
@@ -252,7 +252,7 @@ int videobuf_dma_map(struct videobuf_queue* q, struct videobuf_dmabuf *dma)
vfree(dma->sglist);
dma->sglist = NULL;
dma->sglen = 0;
- return -EIO;
+ return -ENOMEM;
}
}
return 0;