From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 B72371DE3B5; Wed, 6 Nov 2024 12:50:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730897420; cv=none; b=aPmWANGWS2tIYJkeJBgDxmEFlHaTOa8pjbyVLqq/N9J8M7SaZj8ftbkHT+BVLQ9Gdm2dFDuTKfSaB50ctid+guD/THNaXJL+uUDUlSuqORvsv/ziqBn2FiwtZa67ZTisStTZDCDdjnwLMBY19fWJbchnVCB/IBnU7AtOuM8Zu74= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730897420; c=relaxed/simple; bh=WP3KrmdqHTSwRAHr6KPgp99srRwUD4I6bSj4946KYQA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=XnV2sj/d25XlBZprETV9nNqgkMQXAhWm9zL3IOI5BxYDKAfhzoqCSCyUqvENdzPI7huMdfB5kx5q2CpMjKsbBn7yvUaEzYAgE53PhTvlWAfmCLZhWvxnGQNySCwf5bWbqssn+C1Ho5o9XdBHQCNdS+e5+V2tt5NGxUOK6FGoiCU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=GxU6oYYu; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="GxU6oYYu" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 39033C4CECD; Wed, 6 Nov 2024 12:50:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1730897420; bh=WP3KrmdqHTSwRAHr6KPgp99srRwUD4I6bSj4946KYQA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GxU6oYYuyq2Uw9YlZeEVBPOsznD20OaxdI4p2T2pHivLEOCrcN5zb57DswCll1LnO iAh/AHE2X7VW2fNHFy8ONURwKtyyPN6HRq6BA2kExy9xV6Qr6Jz0o4AOhY4zlN9i8h sVyPO5uYRndSCQBFkytWk32ajX4KYFvp8TzjkWIM= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Xiongfeng Wang , James Morse , Will Deacon , Sasha Levin Subject: [PATCH 6.6 048/151] firmware: arm_sdei: Fix the input parameter of cpuhp_remove_state() Date: Wed, 6 Nov 2024 13:03:56 +0100 Message-ID: <20241106120310.155564534@linuxfoundation.org> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241106120308.841299741@linuxfoundation.org> References: <20241106120308.841299741@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org 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: Xiongfeng Wang [ Upstream commit c83212d79be2c9886d3e6039759ecd388fd5fed1 ] In sdei_device_freeze(), the input parameter of cpuhp_remove_state() is passed as 'sdei_entry_point' by mistake. Change it to 'sdei_hp_state'. Fixes: d2c48b2387eb ("firmware: arm_sdei: Fix sleep from invalid context BUG") Signed-off-by: Xiongfeng Wang Reviewed-by: James Morse Link: https://lore.kernel.org/r/20241016084740.183353-1-wangxiongfeng2@huawei.com Signed-off-by: Will Deacon Signed-off-by: Sasha Levin --- drivers/firmware/arm_sdei.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/firmware/arm_sdei.c b/drivers/firmware/arm_sdei.c index 285fe7ad490d1..3e8051fe82965 100644 --- a/drivers/firmware/arm_sdei.c +++ b/drivers/firmware/arm_sdei.c @@ -763,7 +763,7 @@ static int sdei_device_freeze(struct device *dev) int err; /* unregister private events */ - cpuhp_remove_state(sdei_entry_point); + cpuhp_remove_state(sdei_hp_state); err = sdei_unregister_shared(); if (err) -- 2.43.0