Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E534A2DC321; Sat, 12 Sep 2026 15:21:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789226464; cv=none; b=CbgHB1Nrth9Ahzr7gfhQaCBTM5KyJN4L9xAK3QAJEiYNnv6jxrr4pZuS4vldkfdBRKrQA8bwqeMLOZpm4gFJhPBR4JjzIXSJ8SMOuyD0iRhMJpSJPQlN38aUAPzcDnwOw0jiVnRjhBFzm4ETY4sbf2fKsbqyu8LDCH0KTwI6r6g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789226464; c=relaxed/simple; bh=0a/ASyWkNslnxZtlSolBNemjmEjLZu/NHwNc6F7uf8A=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=flftHaWXf9EsAtezy4cvhogaBNQl5NFmI3dOBQYdT0boc/+pcEUkGLY0UjBG0Ps2HtE6fSqhUZ8Tzazp0M5fKVFwHrdo7lC5Ive97j9EF3jY3+AI63KIWEFPQ1AG9/7HYxdVIiRdhG2BXaHoff5YlQuw3j1byf0ZBVpWV+/qnQI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=FCq0kdjy; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="FCq0kdjy" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0AAEB1F000FF; Sat, 12 Sep 2026 15:21:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789226462; bh=9vmSdZfZiV7DGQ/7df6TfDPuAotdlx5aYmIOWTw7iEk=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=FCq0kdjyq8F5ZTAcN3sOBRcxXqUH7vsl84CNE3Vt2knNwVlZvvDr/yfQvja/2eto1 PR9Rm/QPVnnt2e/41NzbNgnKPVu7VK2PIY8Zf7ZTjhUlLWxSjFNj+SCSO2vt+WGPrs g+kQBRXoo8meLP9L7Z6rj0XZT9plGWRYxi8cxrZo= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, "Rafael J. Wysocki" , "Mario Limonciello (AMD)" , "Borislav Petkov (AMD)" , Sasha Levin Subject: [PATCH 6.6 1405/1424] ACPI: processor: Update cpuidle driver check in __acpi_processor_start() Date: Sat, 12 Sep 2026 09:03:57 +0200 Message-ID: <20260912065638.723225248@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260912065607.279695368@linuxfoundation.org> References: <20260912065607.279695368@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Rafael J. Wysocki [ Upstream commit 0089ce1c056aee547115bdc25c223f8f88c08498 ] Commit 7a8c994cbb2d ("ACPI: processor: idle: Optimize ACPI idle driver registration") moved the ACPI idle driver registration to acpi_processor_driver_init() and acpi_processor_power_init() does not register an idle driver any more. Accordingly, the cpuidle driver check in __acpi_processor_start() needs to be updated to avoid calling acpi_processor_power_init() without a cpuidle driver, in which case the registration of the cpuidle device in that function would lead to a NULL pointer dereference in __cpuidle_register_device(). Fixes: 7a8c994cbb2d ("ACPI: processor: idle: Optimize ACPI idle driver registration") Signed-off-by: Rafael J. Wysocki Reviewed-by: Mario Limonciello (AMD) Tested-by: Borislav Petkov (AMD) Link: https://patch.msgid.link/20251223100914.2407069-4-lihuisong@huawei.com Signed-off-by: Rafael J. Wysocki Signed-off-by: Sasha Levin --- drivers/acpi/processor_driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/acpi/processor_driver.c b/drivers/acpi/processor_driver.c index c076e1d5a228e..53fad034703e2 100644 --- a/drivers/acpi/processor_driver.c +++ b/drivers/acpi/processor_driver.c @@ -168,7 +168,7 @@ static int __acpi_processor_start(struct acpi_device *device) if (result && !IS_ENABLED(CONFIG_ACPI_CPU_FREQ_PSS)) dev_dbg(&device->dev, "CPPC data invalid or not present\n"); - if (!cpuidle_get_driver() || cpuidle_get_driver() == &acpi_idle_driver) + if (cpuidle_get_driver() == &acpi_idle_driver) acpi_processor_power_init(pr); acpi_pss_perf_init(pr); -- 2.53.0