projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8bb09db
)
V4L/DVB (11953): videobuf-dma-sg: return -ENOMEM if vmalloc fails
author
Figo.zhang
<figo1802@gmail.com>
Thu, 11 Jun 2009 02:17:27 +0000
(23:17 -0300)
committer
Mauro Carvalho Chehab
<mchehab@redhat.com>
Tue, 16 Jun 2009 22:07:34 +0000
(19:07 -0300)
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>
drivers/media/video/videobuf-dma-sg.c
patch
|
blob
|
history
diff --git
a/drivers/media/video/videobuf-dma-sg.c
b/drivers/media/video/videobuf-dma-sg.c
index c9a5d7edbe4ed3526c3495e0eca7ae1223af371b..a8dd22ace3fbb270b938ba815b617ba815a98fae 100644
(file)
--- 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 -E
IO
;
+ return -E
NOMEM
;
}
}
return 0;