mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 03:04:51 +01:00
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: 11318989c3 ("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>
This commit is contained in:
parent
5f70bde26a
commit
192c197cbc
1 changed files with 1 additions and 1 deletions
|
|
@ -369,7 +369,7 @@ static void *dummy_thread_fn(void *arg)
|
|||
static int test_cgcore_proc_migration(const char *root)
|
||||
{
|
||||
int ret = KSFT_FAIL;
|
||||
int t, c_threads, n_threads = 13;
|
||||
int t, c_threads = 0, n_threads = 13;
|
||||
char *src = NULL, *dst = NULL;
|
||||
pthread_t threads[n_threads];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue