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 047A3C61DF7 for ; Fri, 24 Nov 2023 13:19:09 +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=mveHzPf9GdjfsOQrHrKUQn7oPjCUfXy5sO+qttazxW8=; b=dGCEItJplzaZB1 yf/zquOIMgW6iFF7Y85owVrr/hgfDoQrm9sH4ZQwSotT8xMSQ6j79Yi15PVvYoYxbKDrL5nxD1K9E bFaQLVC29ju3xX0vZeANajXIU7m7nRV2XGKJd6rDIGs+Fn7IpXQIVkb0wrMZab7E2CO6/3uYCh7Vz rtqb2E6tlpdhR2O9NA0n3wcSyygpQBRl43nx53Sp3sEQXd17wgXJLWv3/RIiLMoA7btR5V6+8xLGX MmA+WAbgKWNAaoTF+nbo8VutPRewNwpsnPfKU/vVni3bF/DCe/ZBo/zE9XDIRp2Kac9/dNZmFWEwi +fxdxUJF1Kb3ANOnzcQQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r6W4v-007Hos-2v; Fri, 24 Nov 2023 13:18:41 +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 1r6W4m-007Hki-0e; Fri, 24 Nov 2023 13:18:34 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id E78AECE2972; Fri, 24 Nov 2023 13:18:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 194D8C433CC; Fri, 24 Nov 2023 13:18:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1700831901; bh=FsqC1+N9pNk/CIOoZ9ZlJcr/3hrKVSZd84GGIEtvN2M=; h=Subject:To:Cc:From:Date:From; b=Jeq5kibYhybtGc+V19svkIv0z8hZsh8l1yHG7zXavGUagA+cvhUvAtsaSbinwY8y2 8KfLxfyNS8IBgCeixbOZUf6maowXxxp8rG6bXtCq86xRKMnj4jiorgUqYtHbrdvdSx cJwr8RiqF0yURzYUkk/ji3KIXpgaV9zhY346RwCA= Subject: Patch "drm/mediatek/dp: fix memory leak on ->get_edid callback audio detection" has been added to the 6.1-stable tree To: angelogioacchino.delregno@collabora.com,chunkuang.hu@kernel.org,dmitry.osipenko@collabora.com,dri-devel@lists.freedesktop.org,granquet@baylibre.com,gregkh@linuxfoundation.org,jani.nikula@intel.com,linux-arm-kernel@lists.infradead.org,linux-mediatek@lists.infradead.org,matthias.bgg@gmail.com,p.zabel@pengutronix.de,rex-bc.chen@mediatek.com,wenst@chromium.org Cc: From: Date: Fri, 24 Nov 2023 13:17:53 +0000 Message-ID: <2023112452-reseller-thieving-a14c@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-20231124_051832_709846_BAFF417C X-CRM114-Status: GOOD ( 15.46 ) 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/mediatek/dp: fix memory leak on ->get_edid callback audio detection to the 6.1-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-mediatek-dp-fix-memory-leak-on-get_edid-callback-audio-detection.patch and it can be found in the queue-6.1 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let know about it. >From dab12fa8d2bd3868cf2de485ed15a3feef28a13d Mon Sep 17 00:00:00 2001 From: Jani Nikula Date: Thu, 14 Sep 2023 18:53:17 +0300 Subject: drm/mediatek/dp: fix memory leak on ->get_edid callback audio detection From: Jani Nikula commit dab12fa8d2bd3868cf2de485ed15a3feef28a13d upstream. The sads returned by drm_edid_to_sad() needs to be freed. Fixes: e71a8ebbe086 ("drm/mediatek: dp: Audio support for MT8195") Cc: Guillaume Ranquet Cc: Bo-Chen Chen Cc: AngeloGioacchino Del Regno Cc: Dmitry Osipenko Cc: Chun-Kuang Hu Cc: Philipp Zabel Cc: Matthias Brugger Cc: dri-devel@lists.freedesktop.org Cc: linux-mediatek@lists.infradead.org Cc: linux-kernel@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org Cc: # v6.1+ Signed-off-by: Jani Nikula Reviewed-by: Chen-Yu Tsai Link: https://patchwork.kernel.org/project/dri-devel/patch/20230914155317.2511876-1-jani.nikula@intel.com/ Signed-off-by: Chun-Kuang Hu Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/mediatek/mtk_dp.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) --- a/drivers/gpu/drm/mediatek/mtk_dp.c +++ b/drivers/gpu/drm/mediatek/mtk_dp.c @@ -1983,7 +1983,6 @@ static struct edid *mtk_dp_get_edid(stru bool enabled = mtk_dp->enabled; struct edid *new_edid = NULL; struct mtk_dp_audio_cfg *audio_caps = &mtk_dp->info.audio_cur_cfg; - struct cea_sad *sads; if (!enabled) { drm_bridge_chain_pre_enable(bridge); @@ -2010,7 +2009,11 @@ static struct edid *mtk_dp_get_edid(stru } if (new_edid) { + struct cea_sad *sads; + audio_caps->sad_count = drm_edid_to_sad(new_edid, &sads); + kfree(sads); + audio_caps->detect_monitor = drm_detect_monitor_audio(new_edid); } Patches currently in stable-queue which might be from jani.nikula@intel.com are queue-6.1/drm-msm-dp-skip-validity-check-for-dp-cts-edid-check.patch queue-6.1/i915-perf-fix-null-deref-bugs-with-drm_dbg-calls.patch queue-6.1/drm-mediatek-dp-fix-memory-leak-on-get_edid-callback-error-path.patch queue-6.1/drm-mediatek-dp-fix-memory-leak-on-get_edid-callback-audio-detection.patch _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel