selftest/vm: uninitialized variable in main()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 19 Jul 2022 09:04:14 +0000 (12:04 +0300)
committerakpm <akpm@linux-foundation.org>
Sat, 30 Jul 2022 01:07:17 +0000 (18:07 -0700)
commit360b420dbded8ad5b70a41de98e77354dd9e7d36
treea63af95238bb55204b9093ac8024e6a2f2b505b9
parent198729c9627a754b26aebdc8a26e559424c8f06c
selftest/vm: uninitialized variable in main()

Initialize "length" to zero by default.

Link: https://lkml.kernel.org/r/YtZzjvHXVXMXxpXO@kili
Fixes: ff712a627f72 ("selftests/vm: cleanup hugetlb file after mremap test")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Mina Almasry <almasrymina@google.com>
Reviewed-by: Muchun Song <songmuchun@bytedance.com>
Cc: Mike Kravetz <mike.kravetz@oracle.com>
Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/testing/selftests/vm/hugepage-mremap.c