summaryrefslogtreecommitdiff
path: root/mm/hmm.c
diff options
context:
space:
mode:
authorHugh Dickins <hughd@google.com>2023-07-12 04:27:17 +0300
committerAndrew Morton <akpm@linux-foundation.org>2023-08-18 20:12:17 +0300
commit597425df4fecd272ca48f73feca7833433c16e12 (patch)
treea45e941c49a6836ecda3d92f2a632c3f2b90cca3 /mm/hmm.c
parentfc71884a5f599a603fcc3c2b28b3872c09d19c18 (diff)
downloadlinux-597425df4fecd272ca48f73feca7833433c16e12.tar.xz
mm: userfaultfd: add new UFFDIO_POISON ioctl: fix
Smatch has observed that pte_offset_map_lock() is now allowed to fail, and then ptl should not be unlocked. Use -EAGAIN here like elsewhere. Link: https://lkml.kernel.org/r/bc7bba61-d34f-ad3a-ccf1-c191585ef851@google.com Signed-off-by: Hugh Dickins <hughd@google.com> Reviewed-by: Axel Rasmussen <axelrasmussen@google.com> Cc: Dan Carpenter <dan.carpenter@linaro.org> Cc: Peter Xu <peterx@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/hmm.c')
0 files changed, 0 insertions, 0 deletions