]> www.infradead.org Git - users/dwmw2/linux.git/commit
selftests/mm/cow: fix the incorrect error handling
authorCyan Yang <cyan.yang@sifive.com>
Wed, 12 Mar 2025 04:38:40 +0000 (12:38 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 18 Mar 2025 05:07:06 +0000 (22:07 -0700)
commitf841ad9ca5007167c02de143980c9dc703f90b3d
tree164888c4321a7fc5e1fbbf6b882565289a22e74c
parent456620c5cb238744f3e08a04af935fce25ca2df1
selftests/mm/cow: fix the incorrect error handling

Error handling doesn't check the correct return value.  This patch will
fix it.

Link: https://lkml.kernel.org/r/20250312043840.71799-1-cyan.yang@sifive.com
Fixes: f4b5fd6946e2 ("selftests/vm: anon_cow: THP tests")
Signed-off-by: Cyan Yang <cyan.yang@sifive.com>
Reviewed-by: Dev Jain <dev.jain@arm.com>
Reviewed-by: Muhammad Usama Anjum <usama.anjum@collabora.com>
Cc: David Hildenbrand <david@redhat.com>
Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/testing/selftests/mm/cow.c