From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D7559E7C4E2 for ; Wed, 4 Oct 2023 17:06:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:From:Cc:To :Subject:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=8cGxzUwJZmxk0Td5iyo1y0Z5XpsiNNdPsG1Jdt//LwM=; b=Zuo+LIR6cctXaQ botsUcGGGWDC8qJd4ZcckqH+ZYHTZkv9SmY1ipjkwPek4FOFT09mPlDQ2PxvsLe95oekQMR5INt/D rZrkbiGJGPhbSVY2HEUzr2e4X7S44/eRq5Vfmx0dBhAzilhE7QqBD0snv/ZV6AniV5laMcw+5Y5Dg aOrQfECskMyZWMnofM09p8zGDb4475miKdEV2LuzW9jUCsXkMAvNAC56Li0V6T7ZCfE3oM3USdWaO ib/Auwhb/t+0wS2YfGsKt0w+8a4A3Vnpc7P9unVWsG4GBpvXm7DvBR7ZMUpNSaaYO05af5+hbnL/m jSUa7JrrAJEHgi8cDQ2g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qo5KL-000YZ7-1A; Wed, 04 Oct 2023 17:06:25 +0000 Received: from sin.source.kernel.org ([145.40.73.55]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qo5KI-000YWq-02; Wed, 04 Oct 2023 17:06:23 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id E5F4DCE1DC3; Wed, 4 Oct 2023 17:06:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C7D52C433C7; Wed, 4 Oct 2023 17:06:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1696439179; bh=qFeYeq/QkDceQ2ltD1ff5MpvxGE35QdRHycIgonJW9M=; h=Subject:To:Cc:From:Date:From; b=z5BwNXdTaa/0o7Z366fZEpwFByiNtrPtoiBzSMbSPhiNiRAOaln6gY1uAgOpKz7Mb 8Agnom5Sut+l49JP+If8ZPnhWAVs01LT9a+1i/bukQhT1u2KD9l4S9FYHH4n0P2Uhm SaEKdsctMciYvtlswAJ7cpzQacnRB1K+TJ1vhILk= Subject: Patch "drm/meson: fix memory leak on ->hpd_notify callback" has been added to the 6.5-stable tree To: dri-devel@lists.freedesktop.org,gregkh@linuxfoundation.org,jani.nikula@intel.com,jbrunet@baylibre.com,khilman@baylibre.com,linux-amlogic@lists.infradead.org,linux-arm-kernel@lists.infradead.org,martin.blumenstingl@googlemail.com,narmstrong@baylibre.com,neil.armstrong@linaro.org,sam@ravnborg.org Cc: From: Date: Wed, 04 Oct 2023 19:04:36 +0200 Message-ID: <2023100436-breeze-collision-f94e@gregkh> MIME-Version: 1.0 X-stable: commit X-Patchwork-Hint: ignore X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231004_100622_227904_3B9098E0 X-CRM114-Status: GOOD ( 11.95 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This is a note to let you know that I've just added the patch titled drm/meson: fix memory leak on ->hpd_notify callback to the 6.5-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: drm-meson-fix-memory-leak-on-hpd_notify-callback.patch and it can be found in the queue-6.5 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let know about it. >From 099f0af9d98231bb74956ce92508e87cbcb896be Mon Sep 17 00:00:00 2001 From: Jani Nikula Date: Thu, 14 Sep 2023 16:10:15 +0300 Subject: drm/meson: fix memory leak on ->hpd_notify callback From: Jani Nikula commit 099f0af9d98231bb74956ce92508e87cbcb896be upstream. The EDID returned by drm_bridge_get_edid() needs to be freed. Fixes: 0af5e0b41110 ("drm/meson: encoder_hdmi: switch to bridge DRM_BRIDGE_ATTACH_NO_CONNECTOR") Cc: Neil Armstrong Cc: Sam Ravnborg Cc: Martin Blumenstingl Cc: Neil Armstrong Cc: Kevin Hilman Cc: Jerome Brunet Cc: dri-devel@lists.freedesktop.org Cc: linux-amlogic@lists.infradead.org Cc: linux-arm-kernel@lists.infradead.org Cc: stable@vger.kernel.org # v5.17+ Signed-off-by: Jani Nikula Reviewed-by: Neil Armstrong Signed-off-by: Neil Armstrong Link: https://patchwork.freedesktop.org/patch/msgid/20230914131015.2472029-1-jani.nikula@intel.com Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/meson/meson_encoder_hdmi.c | 2 ++ 1 file changed, 2 insertions(+) --- a/drivers/gpu/drm/meson/meson_encoder_hdmi.c +++ b/drivers/gpu/drm/meson/meson_encoder_hdmi.c @@ -332,6 +332,8 @@ static void meson_encoder_hdmi_hpd_notif return; cec_notifier_set_phys_addr_from_edid(encoder_hdmi->cec_notifier, edid); + + kfree(edid); } else cec_notifier_phys_addr_invalidate(encoder_hdmi->cec_notifier); } Patches currently in stable-queue which might be from jani.nikula@intel.com are queue-6.5/drm-meson-fix-memory-leak-on-hpd_notify-callback.patch _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel