Oleg Nesterov 7a36a752d0 get_user_pages(): fix possible page leak on oom
get_user_pages() must not return the error when i != 0.  When pages !=
NULL we have i get_page()'ed pages.

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Acked-by: Nick Piggin <npiggin@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-07-04 10:40:04 -07:00
..
2008-07-04 10:40:04 -07:00
2008-03-19 18:53:35 -07:00
2008-03-19 18:53:35 -07:00
2008-06-06 11:29:09 -07:00
2008-04-17 20:05:36 +02:00
2007-10-20 01:27:18 +02:00
2008-07-04 10:40:04 -07:00
2008-04-28 08:58:18 -07:00
2007-10-18 14:37:31 -07:00
2007-05-21 09:18:19 -07:00
2008-02-05 09:44:19 -08:00
2008-06-12 18:05:41 -07:00
2007-10-20 01:27:18 +02:00
2008-04-28 08:58:18 -07:00
2008-05-19 20:55:25 +03:00
2008-07-04 10:40:04 -07:00
2008-07-04 10:40:04 -07:00
2008-05-24 09:56:09 -07:00
2007-11-14 18:45:41 -08:00
2008-05-13 08:02:23 -07:00