diff options
author | Nadav Amit <namit@vmware.com> | 2018-09-05 00:45:41 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-09-05 01:45:02 +0200 |
commit | 1ed0cc5a01a4d868d9907ce96468c4b4c6709556 (patch) | |
tree | 31397f1855959637bd99d734743081ce13e6d1ea /include/drm/drm_crtc.h | |
parent | mm, oom: fix missing tlb_finish_mmu() in __oom_reap_task_mm(). (diff) | |
download | linux-1ed0cc5a01a4d868d9907ce96468c4b4c6709556.tar.xz linux-1ed0cc5a01a4d868d9907ce96468c4b4c6709556.zip |
mm: respect arch_dup_mmap() return value
Commit d70f2a14b72a ("include/linux/sched/mm.h: uninline mmdrop_async(),
etc") ignored the return value of arch_dup_mmap(). As a result, on x86,
a failure to duplicate the LDT (e.g. due to memory allocation error)
would leave the duplicated memory mapping in an inconsistent state.
Fix by using the return value, as it was before the change.
Link: http://lkml.kernel.org/r/20180823051229.211856-1-namit@vmware.com
Fixes: d70f2a14b72a4 ("include/linux/sched/mm.h: uninline mmdrop_async(), etc")
Signed-off-by: Nadav Amit <namit@vmware.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/drm/drm_crtc.h')
0 files changed, 0 insertions, 0 deletions