aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/videobuf-dma-sg.c
diff options
context:
space:
mode:
authorFigo.zhang <figo1802@gmail.com>2009-06-10 22:17:27 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-06-16 18:07:34 -0400
commit92051b285b12855255f0213d9a25153d917e262c (patch)
treeb39e44425e54b51a6497a34d823463344f42d6f8 /drivers/media/video/videobuf-dma-sg.c
parent8bb09db375fe4f15d16315947500e827caa0fe9c (diff)
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)
252 vfree(dma->sglist); 252 vfree(dma->sglist);
253 dma->sglist = NULL; 253 dma->sglist = NULL;
254 dma->sglen = 0; 254 dma->sglen = 0;
255 return -EIO; 255 return -ENOMEM;
256 } 256 }
257 } 257 }
258 return 0; 258 return 0;