]> git.baikalelectronics.ru Git - kernel.git/commit
mm/memory_failure: fix the missing pte_unmap() call
authorQi Zheng <zhengqi.arch@bytedance.com>
Fri, 24 Sep 2021 22:44:03 +0000 (15:44 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 24 Sep 2021 23:13:35 +0000 (16:13 -0700)
commit5c91c0e77b8f2681e2b269c8abb4c5acef434d5b
tree8eae22ee45afe52755fdf93051ce89f44d6b19ca
parent19532869feb9b0a97d17ddc14609d1e53a5b60db
mm/memory_failure: fix the missing pte_unmap() call

The paired pte_unmap() call is missing before the
dev_pagemap_mapping_shift() returns.  So fix it.

David says:
 "I guess this code never runs on 32bit / highmem, that's why we didn't
  notice so far".

[akpm@linux-foundation.org: cleanup]

Link: https://lkml.kernel.org/r/20210923122642.4999-1-zhengqi.arch@bytedance.com
Signed-off-by: Qi Zheng <zhengqi.arch@bytedance.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Cc: Naoya Horiguchi <naoya.horiguchi@nec.com>
Cc: Muchun Song <songmuchun@bytedance.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/memory-failure.c