Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1591557ybv; Thu, 20 Feb 2020 23:53:56 -0800 (PST) X-Google-Smtp-Source: APXvYqyQi0oK+HUVuD1fLH+4BAOUwdk5aALzLP4PehjHUnh8hve/JCyGPUAFP9c8hizIRIbhcqC1 X-Received: by 2002:aca:aa0e:: with SMTP id t14mr943041oie.149.1582271636835; Thu, 20 Feb 2020 23:53:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582271636; cv=none; d=google.com; s=arc-20160816; b=Qok99cYsbl8I17uw6dV/7fHo3pymBldt7Mk9RcO9e+xjXf5FVu6LsEA68/mBSF00sX pgdDBjey+FEsorx55Mzwrd7qS+qNympev2HyUWvqZj4/7GoKNxP6yII+diwUDazUfeh6 OtwdtnvOy1WmhVlm/nJ8qbH9pAxGwV1rrQOpsH+QOujALt0dTZd3XW/oxa2zEi7bV1zB xpbrk11yDbPT2bpBYLAd+Wq+LCOHZSU5/M3tUwNuCmvVVdRra6T+mdSVvNFT6RJuce/p kGCB1kK+u6OUJjzLSXoT3S/QmHw1zFwUJibRZ0hQttF6hvYkYDVekcTUmgZFhG/+TX9P Ur5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=OYK03UrGjG2oH0c65hXniCIsiRQcuT4UjfsoVcEOR00=; b=rGBL7A82bTtxGOFDJpflZnjUP2wVod15PagG6AV7ZcD+Vj20jqnqkEWTRBn07GGFyE Nqr4kACMy+I9Ad7pR2E/Z+tFDAyQjcoECtjf2BV6/kkgCib/EPjvwx9FK614BA1ukEXz JtPIAX+HFBjEKwCVV3GDN4kD0ddmctmVbmUEcyhDRHLC90Xs3EF3+8phAkwfjpKpKzCY UjQjXCmkKD/HsCOF62b5PrbOTEd6Lh75nDrgpJN8FxUmm0m5UViUAY0DpaMy2/tcPR6t 9JKe+OTgqunCx5U9z0XHmpllK9ownGd+9YrlH3z2eQZ25iqxhQ5zPf+xNrIWiDfrZoTP Bvxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=13sxEQOe; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d28si411203oic.47.2020.02.20.23.53.44; Thu, 20 Feb 2020 23:53:56 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=13sxEQOe; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730022AbgBUHxL (ORCPT + 99 others); Fri, 21 Feb 2020 02:53:11 -0500 Received: from mail.kernel.org ([198.145.29.99]:51228 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730014AbgBUHxI (ORCPT ); Fri, 21 Feb 2020 02:53:08 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6B94D24656; Fri, 21 Feb 2020 07:53:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1582271587; bh=fKgzkNovUzgTf8pbQsgdrFyVGaFJHfBMFNKzV/qWmos=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=13sxEQOeoQ4GpYdur1HmnzhmQcHKWCeC4Omld5UHEIQH9lr5cIhLIrExA61yacqbM hgorPA4KukISXeYUD/96Aixvr68fXVUCbXvlS3FeBuCQ+43djI1rWH+C5F+tqMeEeR N+Reh9+lfFC4++VDE8vq8gke9dCV5iO46oNmlbJQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dan Carpenter , =?UTF-8?q?Michal=20Koutn=C3=BD?= , Shuah Khan , Sasha Levin Subject: [PATCH 5.5 222/399] selftests: Uninitialized variable in test_cgcore_proc_migration() Date: Fri, 21 Feb 2020 08:39:07 +0100 Message-Id: <20200221072424.558967249@linuxfoundation.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200221072402.315346745@linuxfoundation.org> References: <20200221072402.315346745@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Dan Carpenter [ 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 Acked-by: Michal Koutný Signed-off-by: Shuah Khan Signed-off-by: Sasha Levin --- tools/testing/selftests/cgroup/test_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/cgroup/test_core.c b/tools/testing/selftests/cgroup/test_core.c index c5ca669feb2bd..e19ce940cd6a2 100644 --- a/tools/testing/selftests/cgroup/test_core.c +++ b/tools/testing/selftests/cgroup/test_core.c @@ -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]; -- 2.20.1