Message ID | 20240701165332.47495-1-sj@kernel.org (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id E854CC2BD09 for <linux-mm@archiver.kernel.org>; Mon, 1 Jul 2024 16:53:50 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 362806B0082; Mon, 1 Jul 2024 12:53:50 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 311956B0083; Mon, 1 Jul 2024 12:53:50 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1D9B66B0085; Mon, 1 Jul 2024 12:53:50 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id F273B6B0082 for <linux-mm@kvack.org>; Mon, 1 Jul 2024 12:53:49 -0400 (EDT) Received: from smtpin01.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 720F91C1C7D for <linux-mm@kvack.org>; Mon, 1 Jul 2024 16:53:49 +0000 (UTC) X-FDA: 82291780578.01.228C5DD Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by imf19.hostedemail.com (Postfix) with ESMTP id 7FD6E1A0003 for <linux-mm@kvack.org>; Mon, 1 Jul 2024 16:53:46 +0000 (UTC) Authentication-Results: imf19.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=YciY+bie; spf=pass (imf19.hostedemail.com: domain of sj@kernel.org designates 145.40.73.55 as permitted sender) smtp.mailfrom=sj@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1719852798; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=FkF6nuR91ONCr1Oezs6pjkGxB6PXJjkA/Cm/ie77UJM=; b=Uw7va7oVzIHU8ZG/P7rRte1dTW7QlSavGHJROljjXbAcHAq1J3rYtRpdXYMEX+0IRpbwj9 OBEDZD9mZv5yIPspTc11qfJ3IqQiBoqauY1tiMKLIfMvoFReHamo/dHjAns302OOtNUMFD h+lgIg1ydY3RLUuYtQlaiKopQRGXIk4= ARC-Authentication-Results: i=1; imf19.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=YciY+bie; spf=pass (imf19.hostedemail.com: domain of sj@kernel.org designates 145.40.73.55 as permitted sender) smtp.mailfrom=sj@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1719852798; a=rsa-sha256; cv=none; b=MKSEI3WKdHBPQ9D/KJ48kG/LIOSLIqR6ZzO3I8Ppq6zy2rDjuw4ye4I2hMcDe1Nn/iYhSa DqfgHRUmpgJTLT+vnQkdz+tx9mo6XnAH+GtsyzweZcfyi2Z57U7cGSe8HWTbDOe2GaipNF VjmlseEoxPcaiqWfWVpJA9lXhEXNFmY= Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id BAD95CE19A9; Mon, 1 Jul 2024 16:53:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 58559C116B1; Mon, 1 Jul 2024 16:53:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1719852821; bh=vnMuZlhKXm3KWWW0CRfEhy9hgYlQoH9VI9igjz+6Si0=; h=From:To:Cc:Subject:Date:From; b=YciY+biejtOG3AjVCjmdQi/3gRrbbRsqkwGMgtpLIbfJhZAQ1HX9Xj2ZGDYyQXFRF esTXKo3nhK1hYmRFIYdGq4dIvEoVcBOEuKxwuIvYxQRHnbofntCHv480h98IdkRmbl XLVS+Z77J4ioWulfFtbv8bfADc5zu9aimUPKCILRLK9tbjDHR8TbAG7BnXbkFkskyy 9MD7elwfPsUhLp6wjjv1PEWVv067dNQxQVQ34Ct2Ydt8o0fu/CiB8SBa0/PkQxYIFh 0JFoTeA5SiQlo8bN9cErXolZ214cDLJDwSawX29KPK1aOUHfSxFVZ9+moPfzksnRds dp5pjo4zFwRuw== From: SeongJae Park <sj@kernel.org> To: Andrew Morton <akpm@linux-foundation.org> Cc: SeongJae Park <sj@kernel.org>, Hyeongtak Ji <hyeongtak.ji@sk.com>, Honggyu Kim <honggyu.kim@sk.com>, damon@lists.linux.dev, linux-mm@kvack.org, linux-kernel@vger.kernel.org, kernel test robot <lkp@intel.com>, Dan Carpenter <dan.carpenter@linaro.org> Subject: [PATCH mm-stable 1/1] mm/damon/paddr: initialize nr_succeeded in __damon_pa_migrate_folio_list() Date: Mon, 1 Jul 2024 09:53:32 -0700 Message-Id: <20240701165332.47495-1-sj@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: 7FD6E1A0003 X-Stat-Signature: fhtmipo617uebjuu3k4khsmca5zcjqfi X-Rspam-User: X-HE-Tag: 1719852826-742800 X-HE-Meta: U2FsdGVkX18yH9sCwFogza4qK2SbpJH7dqoOPZF8aAQrcFvo65X5n7rYzxUDiCkJophu06jZD/lgE8eDXlR2r0XVvVgYT8OZeezY5Ku97w+a9yq7q17dZfVCA6nlGv2A5rGLMRx3W3qP5ydQpY0DXAhQtOOWee7WnYdeAZwgdl11ssSN3hrjxTNH2SSCxYtD5k7Y1ypuZ/fBdIrBMvtsWXoFDDepyDvbi6dC2ERV1FBq4quj4MjSap6w8Gck6eKpIiE8NCiuzRD7J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9TG+vXG7A/iiSys= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
[mm-stable,1/1] mm/damon/paddr: initialize nr_succeeded in __damon_pa_migrate_folio_list()
|
expand
|
diff --git a/mm/damon/paddr.c b/mm/damon/paddr.c index af6aac388a43..a9ff35341d65 100644 --- a/mm/damon/paddr.c +++ b/mm/damon/paddr.c @@ -332,7 +332,7 @@ static unsigned int __damon_pa_migrate_folio_list( struct list_head *migrate_folios, struct pglist_data *pgdat, int target_nid) { - unsigned int nr_succeeded; + unsigned int nr_succeeded = 0; nodemask_t allowed_mask = NODE_MASK_NONE; struct migration_target_control mtc = { /*
The variable is supposed to be set via later migrate_pages() call. However, the function does not do that when CONFIG_MIGRATION is unset. Initialize the variable to zero. Fixes: 5311c0a2eee3 ("mm/damon/paddr: introduce DAMOS_MIGRATE_COLD action for demotion") # mm-stable Reported-by: kernel test robot <lkp@intel.com> Reported-by: Dan Carpenter <dan.carpenter@linaro.org> Closes: https://lore.kernel.org/r/202406251102.GE07hqfQ-lkp@intel.com/ Signed-off-by: SeongJae Park <sj@kernel.org> --- mm/damon/paddr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)