David Howells 0e8f989a25 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>
2009-01-08 12:04:46 +00:00
..
2008-12-25 11:40:09 +11:00
2009-01-05 11:54:28 -05:00
2008-12-31 18:07:43 -05:00
2009-01-07 08:58:28 +00:00
2008-11-14 10:39:25 +11:00
2009-01-05 08:40:30 -08:00
2009-01-07 17:38:31 -05:00
2008-10-17 02:38:36 +11:00
2009-01-05 11:54:27 -05:00
2009-01-05 11:54:28 -05:00
2008-12-04 17:16:36 +11:00
2008-12-29 08:29:50 +01:00
2008-12-31 18:07:43 -05:00
2009-01-03 11:45:54 -08:00
2008-12-29 08:29:53 +01:00
2008-01-30 13:31:46 +01:00
2008-12-31 18:07:38 -05:00
2009-01-06 15:59:29 -08:00
2008-12-25 11:40:09 +11:00
2009-01-06 15:59:09 -08:00
2009-01-05 07:38:46 +00:00
2008-12-31 18:07:41 -05:00
2009-01-05 11:54:28 -05:00
2009-01-04 15:14:41 -05:00
2009-01-06 15:59:12 -08:00
2008-10-30 11:38:45 -07:00
2009-01-05 11:54:28 -05:00
2009-01-06 15:59:00 -08:00
2009-01-05 11:54:28 -05:00