git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c4f0b78
)
[media] omap3isp: queue: Don't corrupt buf->npages when get_user_pages() fails
author
Laurent Pinchart
<laurent.pinchart@ideasonboard.com>
Thu, 7 Apr 2011 16:30:14 +0000
(13:30 -0300)
committer
Mauro Carvalho Chehab
<mchehab@redhat.com>
Tue, 19 Apr 2011 14:29:56 +0000
(11:29 -0300)
get_user_pages() can return a negative error code when it fails. Set
buf->npages to 0 in that case, to prevent isp_video_buffer_cleanup()
from releasing invalid pages.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
No differences found