diff options
| author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2013-10-08 09:29:09 +0200 |
|---|---|---|
| committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2013-10-24 17:17:01 +0200 |
| commit | eb0bf929d5228ca0eb2758585f2e4e25aa20427e (patch) | |
| tree | 68b30c431a0418d31feaca8046a9deab86172b7e /tools/perf/scripts/python | |
| parent | s390/gup: reduce code duplication between [__]get_user_pages_fast functions (diff) | |
| download | linux-eb0bf929d5228ca0eb2758585f2e4e25aa20427e.tar.gz linux-eb0bf929d5228ca0eb2758585f2e4e25aa20427e.zip | |
s390/gup: handle zero nr_pages case correctly
If [__]get_user_pages_fast() gets called with nr_pages == 0, the current
code would walk the page tables and pin as many pages until the first
invalid pte (or the kernel crashed while writing struct page pointers to
the pages array).
So let's handle at least the nr_pages == 0 case correctly and exit early.
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
