]> www.infradead.org Git - users/jedix/linux-maple.git/commit
kernel/fork: Detect mas_store() failure in dup_mmap() mm-unstable-maple-v12
authorLiam R. Howlett <Liam.Howlett@oracle.com>
Fri, 22 Jul 2022 15:53:50 +0000 (11:53 -0400)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Fri, 22 Jul 2022 16:04:19 +0000 (12:04 -0400)
commit8aa06a9b2344a0fdfe15b5613ff7f353a8ae3d19
treed1d734e2325c9e29b22f468f6776fe7113496943
parentdd1bc3f7f93e26b7c0e1b4e231a0d5e3b149df3c
kernel/fork: Detect mas_store() failure in dup_mmap()

mas_store() should not fail, but protect against potential failures by
checking the maple state for mas_is_err().

Fixes: 57579b57de57 (kernel/fork: use maple tree for dup_mmap() during forking)
Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com>
kernel/fork.c