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 C80DE280CE5; Wed, 25 Feb 2026 01:42:15 +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=1771983735; cv=none; b=f2kWzyXFD7V63Iklkb2tH36hd/C6ewUCoUjL59Dba+iQCd2MD41WBqWtolWKXOtNre/yLI+7CtP9KetDJ2iXcbrZnQ2kIwchyKiE/yAUvNd+gD53Suu+tx5Fb++KDwyDpckUON9055XG1OhC809L1+QQ6mbfCPKmT7OHC+7uwAE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771983735; c=relaxed/simple; bh=o14d0mNoLyfdtPY4Bc62M+pIcL9ykKgJbk0V4tda2Vw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=X1PBh+Ha13mOacvGS54pUhQhs6feWDQaYMpa5X59SopyM7oaRkop7aXPxnzvMgF+/N1iKGkfgKpJ1i5XfhMqy7wiJQRjhW5N3qAR8vCqmNsDcjN9hOHIA0kzNo7ANghPUSJJZIOkH1yFRuAhgopNe8atvWKJIr7QqL2BIi/nzzc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=KS4lA+8A; 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="KS4lA+8A" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 88F35C19424; Wed, 25 Feb 2026 01:42:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1771983735; bh=o14d0mNoLyfdtPY4Bc62M+pIcL9ykKgJbk0V4tda2Vw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KS4lA+8AYpL7BWnUtTob0bzMaJ4VVsldYPqDrj8YqBl4FKIJoJCBRlEZwVdXDtzv/ st7HogMr19k17dsWsvxcGZQjmMLqIXK1GWqmBdioC95kwP7kaePWuRAwbP+wXJ8tRj 1u+W5aWUJk1QI4JapXy977qdaajdR760LymWxvNg= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Thomas Fourier , Geert Uytterhoeven , Andy Shevchenko , Sasha Levin Subject: [PATCH 6.18 003/641] auxdisplay: arm-charlcd: fix release_mem_region() size Date: Tue, 24 Feb 2026 17:15:29 -0800 Message-ID: <20260225012349.014959845@linuxfoundation.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260225012348.915798704@linuxfoundation.org> References: <20260225012348.915798704@linuxfoundation.org> User-Agent: quilt/0.69 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.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Thomas Fourier [ Upstream commit b5c23a4d291d2ac1dfdd574a68a3a68c8da3069e ] It seems like, after the request_mem_region(), the corresponding release_mem_region() must take the same size. This was done in (now removed due to previous refactoring) charlcd_remove() but not in the error path in charlcd_probe(). Fixes: ce8962455e90 ("ARM: 6214/2: driver for the character LCD found in ARM refdesigns") Signed-off-by: Thomas Fourier Reviewed-by: Geert Uytterhoeven Signed-off-by: Andy Shevchenko Signed-off-by: Sasha Levin --- drivers/auxdisplay/arm-charlcd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/auxdisplay/arm-charlcd.c b/drivers/auxdisplay/arm-charlcd.c index a7eae99a48f77..4e22882f57c9c 100644 --- a/drivers/auxdisplay/arm-charlcd.c +++ b/drivers/auxdisplay/arm-charlcd.c @@ -323,7 +323,7 @@ static int __init charlcd_probe(struct platform_device *pdev) out_no_irq: iounmap(lcd->virtbase); out_no_memregion: - release_mem_region(lcd->phybase, SZ_4K); + release_mem_region(lcd->phybase, lcd->physize); out_no_resource: kfree(lcd); return ret; -- 2.51.0