diff options
| author | Miaohe Lin <[email protected]> | 2021-09-02 14:53:42 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2021-09-03 09:58:11 -0700 |
| commit | 6401c4eb57f947a49eb144b5b0787cde3318e82e (patch) | |
| tree | 29f1b1a07e161b22f56ca111541c9abb1d9cae55 /tools/perf/scripts/python/net_dropmonitor.py | |
| parent | 06a9e696639c5e0f457ae117c39ec4cbe5096dc9 (diff) | |
mm: gup: fix potential pgmap refcnt leak in __gup_device_huge()
When failed to try_grab_page, put_dev_pagemap() is missed. So pgmap
refcnt will leak in this case. Also we remove the check for pgmap against
NULL as it's also checked inside the put_dev_pagemap().
[[email protected]: simplify, cleanup]
[[email protected]: fix return value]
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Miaohe Lin <[email protected]>
Fixes: 3faa52c03f44 ("mm/gup: track FOLL_PIN pages")
Reviewed-by: John Hubbard <[email protected]>
Reviewed-by: Claudio Imbrenda <[email protected]>
Cc: Jan Kara <[email protected]>
Cc: Kirill A. Shutemov <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions