summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2009-01-08 13:04:46 +0100
committerDavid Howells <dhowells@redhat.com>2009-01-08 13:04:46 +0100
commit0e8f989a253b1bf85ea1c8d7987d67c054f4af91 (patch)
tree0b8b2c1e5c09c5cd46851680d8de2a0ad3c0fa9b /kernel
parentMerge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc-2.6 (diff)
downloadlinux-0e8f989a253b1bf85ea1c8d7987d67c054f4af91.tar.xz
linux-0e8f989a253b1bf85ea1c8d7987d67c054f4af91.zip
NOMMU: Fix cleanup handling in ramfs_nommu_get_umapped_area()
Fix cleanup handling in ramfs_nommu_get_umapped_area() by only freeing the number of pages that find_get_pages() said it had returned (nr) rather than attempting to free the number of pages we asked for (lpages) - thus avoiding the situation whereby put_page() may be handed NULL pointers if find_get_pages() returned fewer pages that were requested. Also avoid a warning about nr being uninitialised and the need for an if-statement in the cleanup path by using appropriate gotos. Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions