diff options
author | Oleg Nesterov <oleg@tv-sign.ru> | 2008-07-04 18:59:28 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-04 19:40:04 +0200 |
commit | 7a36a752d006f6874049da510297eeb7f09d92a7 (patch) | |
tree | 764d02c44b95e34deb9cd3ed9d7bdc03c35ef172 /drivers/rtc/rtc-x1205.c | |
parent | serial: fix serial_match_port() for dynamic major tty-device numbers (diff) | |
download | linux-7a36a752d006f6874049da510297eeb7f09d92a7.tar.xz linux-7a36a752d006f6874049da510297eeb7f09d92a7.zip |
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>
Diffstat (limited to 'drivers/rtc/rtc-x1205.c')
0 files changed, 0 insertions, 0 deletions