]> git.baikalelectronics.ru Git - kernel.git/commit
[media] ivtv: udma: handle get_user_pages() returning fewer pages than we asked for
authorPaul Cassella <fortytwo-ivtv@manetheren.bigw.org>
Wed, 9 Feb 2011 01:22:52 +0000 (22:22 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 21 Mar 2011 23:32:33 +0000 (20:32 -0300)
commitd0109d67202091bb3d4bfdaf72378b09f34ee73e
treeefca87578eb126bca58129e55ee107c72cf63d51
parent126cad6f11669a0195fab8fbab88fa6649c936e4
[media] ivtv: udma: handle get_user_pages() returning fewer pages than we asked for

get_user_pages() may return fewer page than we ask for.  As we give up and
return an error in this case, we need to put_page() each of the pages we
did get.

[Andy Walls modified the patch, only removing the braces in the 'for'
statement, to eliminate a checkpatch warning.]

Signed-off-by: Paul Cassella <fortytwo-ivtv@manetheren.bigw.org>
Signed-off-by: Andy Walls <awalls@md.metrocast.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/ivtv/ivtv-udma.c