]> err.no Git - linux-2.6/commit
pagemap: proper read error handling
authorMarcelo Tosatti <marcelo@kvack.org>
Thu, 13 Mar 2008 19:32:35 +0000 (12:32 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 13 Mar 2008 20:11:43 +0000 (13:11 -0700)
commitfb39380b8d683b55630ba5ba381f4e43e417420e
tree4fa4386d054b2af1b66651f8cc3d87eeb48ebf73
parentb500ce8d24d1f14426643da5f6fada28c1f60533
pagemap: proper read error handling

Fix pagemap_read() error handling by releasing acquired resources and checking
for get_user_pages() partial failure.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Acked-by: Matt Mackall <mpm@selenic.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/proc/task_mmu.c