]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Feb 2020 07:38:24 +0000 (08:38 +0100)
commit183a9d1c534fcb82f1e645f23a721d10e70d4b0a
tree7ac2661612762d85866fbe93bb41402351f1956d
parent72472893c1aa8fa602da20846f9b4d8c950f03ea
selftests: Uninitialized variable in test_cgcore_proc_migration()

[ Upstream commit 192c197cbca599321de95a4cf15c2fa0681140d3 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/cgroup/test_core.c