selftests: Uninitialized variable in test_cgcore_proc_migration()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 8 Jan 2020 05:46:29 +0000 (08:46 +0300)
committerShuah Khan <skhan@linuxfoundation.org>
Thu, 9 Jan 2020 23:21:23 +0000 (16:21 -0700)
commit192c197cbca599321de95a4cf15c2fa0681140d3
tree8db93d8f4f6c3fa1309d1bab77c88c458430dfae
parent5f70bde26a48769012006e22f16cb768f9681020
selftests: Uninitialized variable in test_cgcore_proc_migration()

The "c_threads" variable is used in the error handling code before it
has been initialized

Fixes: 11318989c381 ("selftests: cgroup: Add task migration tests")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Michal Koutný <mkoutny@suse.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/cgroup/test_core.c