From: Paul Cassella Date: Wed, 9 Feb 2011 01:22:52 +0000 (-0300) Subject: [media] ivtv: udma: handle get_user_pages() returning fewer pages than we asked for X-Git-Tag: v2.6.39-rc1~86^2~227 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=793e71b667856ed6163ad0dc7de1f453e9385590;p=pandora-kernel.git [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 Signed-off-by: Andy Walls Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed