From nobody Tue Sep 29 01:38:35 2026 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 701363BA236; Mon, 17 Aug 2026 08:37:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786955876; cv=none; b=JXL1e227/k9ODg8wLe4zrb9uO7S5bhHvgoTALebJmQSX0S9V8iFfkMh+bhEdL59NYXvFTdu5y0YBR1AWmRmOdEtxHozmjGJ5l3SseGFbCaKTPN68yGtKzGd2txkAR2BuTWK9qn5X3aK+XtjaMAZULrmaNwKPm1vzmDUYuD3xJyw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786955876; c=relaxed/simple; bh=5rxh+16scL+qRgit2ZTWbvl/fokuttzDCXbYmf0dKno=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=k5ONLGfLkADrFaUegRvSJfh09DG58zkxoz+Tg/CaRSWTCGqQnEt9k9b7PnCXWYYrzVW8BssuSAjjesLsowiVZx4XDqd1g4/kgG52KbdkRIoGMh4nh5yJaYSOcN+V07mMW6xI6ywfy2l7GsGnl8lNNR42secuyQTs+WdQy7TmQAo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=u8g7Qp+O; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=+S5DJ/jY; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="u8g7Qp+O"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="+S5DJ/jY" Date: Mon, 17 Aug 2026 08:37:51 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1786955872; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=zgwudMemvgin4HfAMaLyxr8zx2r6IfpHpNaiiL6jAxs=; b=u8g7Qp+O/InqaRdRQpEADChOGCnvluXGzWim2SfmSuB3CmVTIcM3AahChcVf4CVvaY4ZD/ PA0X2bBOw1bdlX6EFUxQu5t/y6Q3mdEmAwHkpSZxmcfVOGsF5GhlS+odR89s/g/i3Ugasx 9CLGH2MoWDc922pe0RuduZxoLI31dkC24k1ZRqtQP6MkGNJ026vYLupcfE6hN6HdUD1rDH +xeSRt0GS3cYcYKLYkSijQ9zOkdGCF/uQlmc322bJYf/afLqoAzQMMP6wJT6UHMbifClfF El75DGA18FrNagBaj7bIHHL8Ja2MQF1m7o1dDZ8zEtVyv+BbOgtFWNrvjaZHPw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1786955872; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=zgwudMemvgin4HfAMaLyxr8zx2r6IfpHpNaiiL6jAxs=; b=+S5DJ/jY1Q00FB0E41B5fXHkkhbOfZyFmZsq+hHpGy9aM77cf7Slb5bYl0tFCd86N3i38n A1P2RuxV5qQi2fCw== From: "tip-bot2 for Guangshuo Li" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: timers/clocksource] clocksource/drivers/clps711x: Do not unmap clocksource MMIO Cc: Guangshuo Li , Daniel Lezcano , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20260704175451.256364-1-lgs201920130244@gmail.com> References: <20260704175451.256364-1-lgs201920130244@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <178695587101.1542179.9163999892666658179.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The following commit has been merged into the timers/clocksource branch of = tip: Commit-ID: e998c6300ef4e062a704ee17b5a812c0b595cf42 Gitweb: https://git.kernel.org/tip/e998c6300ef4e062a704ee17b5a812c0b= 595cf42 Author: Guangshuo Li AuthorDate: Sun, 05 Jul 2026 01:54:51 +08:00 Committer: Daniel Lezcano CommitterDate: Thu, 13 Aug 2026 18:13:15 +02:00 clocksource/drivers/clps711x: Do not unmap clocksource MMIO clps711x_clksrc_init() stores the timer base address in the static tcd pointer and registers it as both the clocksource MMIO address and the sched_clock read address. The clocksource init path must therefore keep the mapping alive after clps711x_timer_init() returns. However, the shared unmap_io exit path is also reached after successful clocksource registration, so the MMIO mapping is torn down while the clocksource and sched_clock readers may still access it. Return directly after successful clocksource registration and leave the mapping alive for the registered readers. Keep the unmap_io path for the error paths and for the clockevent init path. Fixes: cd32e596f02f ("clocksource/drivers/clps711x: Fix resource leaks in e= rror paths") Signed-off-by: Guangshuo Li Signed-off-by: Daniel Lezcano Link: https://patch.msgid.link/20260704175451.256364-1-lgs201920130244@gmai= l.com --- drivers/clocksource/clps711x-timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clocksource/clps711x-timer.c b/drivers/clocksource/clp= s711x-timer.c index bb0a44a..63ae3a6 100644 --- a/drivers/clocksource/clps711x-timer.c +++ b/drivers/clocksource/clps711x-timer.c @@ -94,7 +94,7 @@ static int __init clps711x_timer_init(struct device_node = *np) switch (of_alias_get_id(np, "timer")) { case CLPS711X_CLKSRC_CLOCKSOURCE: clps711x_clksrc_init(clock, base); - break; + return 0; case CLPS711X_CLKSRC_CLOCKEVENT: ret =3D _clps711x_clkevt_init(clock, base, irq); break;