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 CDBA5C61D97 for ; Fri, 24 Nov 2023 13:20:04 +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=i70rE96meSHRCUjaQnBVm69JYsVmsJSTdYxJPB4CxIE=; b=DVM70ZaDaMyumU 3a2O7bGlItfrO4yWuSrN0Fgay3E6oCjPbFsLFa2PvESl6vNAzXZYd9rHtaMob92bzRddamHeXZ7P+ 0uz7rAsQNCthvFHSriNDaZRMPO1JmEKUgExbEPx/9gRxTaPY+cEobYu8ph9S3efGCy0ESFMDRS4TU 8iqyzJgfCf3knTVKRrP2I+3QRI4H2Wr7M2lnVx3SaUZrhiJxvn+ebEKIIlux4cJ+35bT0dLbm3s6D 9lHqCkMIjqYEO3jvElh/gwwNBLI5j/X6r3TgFdbIWP2Ktyt/4y44oWdw9xhXLHeHxL9iwq27MttWd tCVA+ggJdUeQ1/Rx59Qg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r6W5q-007Hy4-2i; Fri, 24 Nov 2023 13:19:38 +0000 Received: from ams.source.kernel.org ([2604:1380:4601:e00::1]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r6W5n-007Hwx-2a; Fri, 24 Nov 2023 13:19:37 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by ams.source.kernel.org (Postfix) with ESMTP id 8A625B8309A; Fri, 24 Nov 2023 13:19:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 94738C433C7; Fri, 24 Nov 2023 13:19:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1700831973; bh=b6+ZzjeG4borfGY1kvHemgkFfC9490vTd32Ac19armw=; h=Subject:To:Cc:From:Date:From; b=TRgtwpFgaZ2Ka+okIIUnlTsG11sOaxC4G3KugTQF+gio8LpWY2Jyiv6/lm30hqNT5 UwbtWS9gIUPBZzNO+WP5RbGOYLG4No31wdfDtDoaoIaWBwVViKalY1dbb1q/t5ydkP PryUu7HjyU4dxmXU+ncrbCgGaVWVXtTUmrAnlZC4= Subject: Patch "drm/mediatek/dp: fix memory leak on ->get_edid callback error path" has been added to the 6.5-stable tree To: angelogioacchino.delregno@collabora.com,chunkuang.hu@kernel.org,ck.hu@mediatek.com,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,msp@baylibre.com,p.zabel@pengutronix.de,rex-bc.chen@mediatek.com Cc: From: Date: Fri, 24 Nov 2023 13:18:42 +0000 Message-ID: <2023112442-victory-lethargy-2c49@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_051936_110491_244B6576 X-CRM114-Status: GOOD ( 12.38 ) 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 error path 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-mediatek-dp-fix-memory-leak-on-get_edid-callback-error-path.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 fcaf9761fd5884a64eaac48536f8c27ecfd2e6bc Mon Sep 17 00:00:00 2001 From: Jani Nikula Date: Thu, 14 Sep 2023 16:10:58 +0300 Subject: drm/mediatek/dp: fix memory leak on ->get_edid callback error path From: Jani Nikula commit fcaf9761fd5884a64eaac48536f8c27ecfd2e6bc upstream. Setting new_edid to NULL leaks the buffer. Fixes: f70ac097a2cf ("drm/mediatek: Add MT8195 Embedded DisplayPort driver") Cc: Markus Schneider-Pargmann Cc: Guillaume Ranquet Cc: Bo-Chen Chen Cc: CK Hu 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: Guillaume Ranquet Link: https://patchwork.kernel.org/project/dri-devel/patch/20230914131058.2472260-1-jani.nikula@intel.com/ Signed-off-by: Chun-Kuang Hu Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/mediatek/mtk_dp.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/gpu/drm/mediatek/mtk_dp.c +++ b/drivers/gpu/drm/mediatek/mtk_dp.c @@ -2005,6 +2005,7 @@ static struct edid *mtk_dp_get_edid(stru */ if (mtk_dp_parse_capabilities(mtk_dp)) { drm_err(mtk_dp->drm_dev, "Can't parse capabilities\n"); + kfree(new_edid); new_edid = NULL; } Patches currently in stable-queue which might be from jani.nikula@intel.com are queue-6.5/drm-msm-dp-skip-validity-check-for-dp-cts-edid-check.patch queue-6.5/i915-perf-fix-null-deref-bugs-with-drm_dbg-calls.patch queue-6.5/drm-mediatek-dp-fix-memory-leak-on-get_edid-callback-error-path.patch queue-6.5/drm-edid-fixup-h-vsync_end-instead-of-h-vtotal.patch queue-6.5/drm-mediatek-dp-fix-memory-leak-on-get_edid-callback-audio-detection.patch queue-6.5/drm-i915-mtl-avoid-stringop-overflow-warning.patch queue-6.5/drm-i915-tc-fix-wformat-truncation-in-intel_tc_port_.patch _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel