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 000501898FB for ; Thu, 17 Apr 2025 09:58:16 +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=1744883899; cv=none; b=XhP54zi8EgWXEkIETgLB/BAAuEOsaBB+00SBlY3XdK2XgCkWn5F/jrHBKWQKLHoYq2UjzM2IrxbcNG4BVSdacraJ0acI7Lu8WQed/zWrZyh6XBVPscitmHQEpWhYjhU7XzoVn/J0lCoihQlLtHtJAS0XKqT+eO1XevuqP76F0nE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744883899; c=relaxed/simple; bh=MqKAnZ0YUgCMTkhlXy+OKCZ1YBiHZ3i35CEdLiWKhdw=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=tQxtKx2ai6gLVpWx9FXhqlXu8UJMktq79ExBueY0xQ5u4/eVuLZV7x5c5WmcUFG6AGCnueOZ2EGiHbfrFQVG2ggisGeAp72LfqVbr5L9WSZ1uSiL/Si4loAcFqLLhRg4/nrTCcjREvfA/U5vb8Vr9XA+jAKrgjrtuxMWJ19RFiY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=sJ+6SoFt; 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="sJ+6SoFt" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EFA8CC4CEE7; Thu, 17 Apr 2025 09:58:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1744883896; bh=MqKAnZ0YUgCMTkhlXy+OKCZ1YBiHZ3i35CEdLiWKhdw=; h=Subject:To:Cc:From:Date:From; b=sJ+6SoFtODVp+m/O8dtqPO0Za2GKiqFznAzFteUiDDjVpSkV/LUn/qiHwq/4n2gwM mPjEhMftBxKqjSaQvhuQGM9apzzuByMAyMmQ/5f6kwjebXhITgV1tuDh9rYlNujgFE SUEs4X0BlCMYkswS/aj7J8cw1qKC8CeVRx8uwV9s= Subject: FAILED: patch "[PATCH] auxdisplay: hd44780: Fix an API misuse in hd44780.c" failed to apply to 6.6-stable tree To: haoxiang_li2024@163.com,andriy.shevchenko@linux.intel.com,geert@linux-m68k.org Cc: From: Date: Thu, 17 Apr 2025 11:58:13 +0200 Message-ID: <2025041713-silencer-jaws-15e6@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit The patch below does not apply to the 6.6-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . To reproduce the conflict and resubmit, you may use the following commands: git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.6.y git checkout FETCH_HEAD git cherry-pick -x 9b98a7d2e5f4e2beeff88f6571da0cdc5883c7fb # git commit -s git send-email --to '' --in-reply-to '2025041713-silencer-jaws-15e6@gregkh' --subject-prefix 'PATCH 6.6.y' HEAD^.. Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From 9b98a7d2e5f4e2beeff88f6571da0cdc5883c7fb Mon Sep 17 00:00:00 2001 From: Haoxiang Li Date: Mon, 24 Feb 2025 18:15:27 +0800 Subject: [PATCH] auxdisplay: hd44780: Fix an API misuse in hd44780.c Variable allocated by charlcd_alloc() should be released by charlcd_free(). The following patch changed kfree() to charlcd_free() to fix an API misuse. Fixes: 718e05ed92ec ("auxdisplay: Introduce hd44780_common.[ch]") Cc: stable@vger.kernel.org Signed-off-by: Haoxiang Li Reviewed-by: Geert Uytterhoeven Signed-off-by: Andy Shevchenko diff --git a/drivers/auxdisplay/hd44780.c b/drivers/auxdisplay/hd44780.c index 0526f0d90a79..9d0ae9c02e9b 100644 --- a/drivers/auxdisplay/hd44780.c +++ b/drivers/auxdisplay/hd44780.c @@ -313,7 +313,7 @@ static int hd44780_probe(struct platform_device *pdev) fail3: kfree(hd); fail2: - kfree(lcd); + charlcd_free(lcd); fail1: kfree(hdc); return ret; @@ -328,7 +328,7 @@ static void hd44780_remove(struct platform_device *pdev) kfree(hdc->hd44780); kfree(lcd->drvdata); - kfree(lcd); + charlcd_free(lcd); } static const struct of_device_id hd44780_of_match[] = {