Received: by 10.192.165.148 with SMTP id m20csp1016934imm; Wed, 2 May 2018 12:37:18 -0700 (PDT) X-Google-Smtp-Source: AB8JxZouq9iAtEAdwNdlsY3m9HoLHMETgH6Q1MnFUL6sDLhEykPBY6c7k6NHTBBjsVYbDw3qjSxs X-Received: by 2002:a65:66c6:: with SMTP id c6-v6mr17021896pgw.127.1525289838090; Wed, 02 May 2018 12:37:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525289838; cv=none; d=google.com; s=arc-20160816; b=imZgbMHhrstqJXZmG6bKXcBpnCtyWh/22aeFIp7kv8S+2Tu+R8LnOGO8EWQ+C6qUcN BRdvdXtUZGoWpIOV0//Su0fabcH9f4alYRLMi50lv9oXFqfp/0HCYKy0h4HHLCfKQoyZ svKUBaKArbQ93j1PRWEAY1OXrFIapGluXNtSYwioMJWd6TJGFK3rLIp1hZNth5Ke2Y54 CoZFM+JnKoO2UDiioL5shHppL0CPnsXOgwcGYzNsZRt0WLt6GIwIjPfnJUZS/I7AsuO5 Gk5UpnvGoj/fgHbILfw5rmSO2Siph6ccGwiqdUEFgU7lmMrXI6D6U/hmVnwLvqiPxCXC JHSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=HrBn0qxHO5CKCMWVe01rDZ0ziUd/g2mgaFVgSB9UaAI=; b=Fw1Avep1nyGX1oHXy/+NGrTPTUgiqYkQZ0pvyeG60fWHFYYpsMANJELut0j7+JzJI2 vKr7thih/7HMwVDvmEaZeDjyv1leVN/lAWC1Ov4r0OB/pRJA6j8MD5eOUhi7YqpcAY91 VRPS2lWLrX+rkW0j8nxcgxoDOFRAy3+OpZ9ljcJdCpdV52eEnsWFTxbV3lVxxpMx8RzF afxhfU3Kw+nRcXXA/8B9tTn6Muw/d4FEocen5SpzRcv8xORaae0yZqxTgWQypkSs038W 1uSqX08MYerSrlw17uXEaatfzxRRX34QG9UFSCnrIr7XoFcSuYN074rfXsz21jhNlg/b aF+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=eQjtEyiH; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t8si12172544pfl.344.2018.05.02.12.37.03; Wed, 02 May 2018 12:37:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=eQjtEyiH; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751138AbeEBTgw (ORCPT + 99 others); Wed, 2 May 2018 15:36:52 -0400 Received: from mail-yw0-f194.google.com ([209.85.161.194]:46140 "EHLO mail-yw0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750969AbeEBTgs (ORCPT ); Wed, 2 May 2018 15:36:48 -0400 Received: by mail-yw0-f194.google.com with SMTP id i17-v6so4938806ywg.13 for ; Wed, 02 May 2018 12:36:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=HrBn0qxHO5CKCMWVe01rDZ0ziUd/g2mgaFVgSB9UaAI=; b=eQjtEyiHJS7jLQLfNnGMAiBFN3+W+bkWjHF8/aCdM6U89BXEpUS7grD+MyfHf+ua0x 5gOHht5WsU+RQIMZsmOL8PSi9ccJSnvWs+4QF3Ih4AAPzYzySFhTjN/JfphMj9ukdrbE YDubG9NUhPSN8aRRCtf2IqwkN9oXkyFObl2zk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=HrBn0qxHO5CKCMWVe01rDZ0ziUd/g2mgaFVgSB9UaAI=; b=IwERzuqaCcKBWclniPKo5IU8eKhCaa/3EzRQs9rnu0Y95Cjje+5oylOSIMSygZ0sKU Cz3eISESxobnQFbcajIPIi+/xVakMADFfuQw9l+KjJd2ubRoM9Ws20A3FukCM93FoeLY p4bkPf/ljSsvKypfTej8iENpeBoLkiPyE8paAfS1iDlu4tiK3fHoMPVFGkmDRKu1c2Z/ NcnwVgKJw05JAkAvEx+SAv4OVZXii25kbXZBwe3JplXMviq9z5Ukp0UAgd3Qago8gYav kwLo2ezoe/hixlNDY4NxkHTPfCQa8uP77okf8JFLXt/K5gwnl0DXZCpDi9PEywQsKCme 7tIQ== X-Gm-Message-State: ALQs6tCvs2A4/e0TIz6NtbHvbybktuGimpCjvCQXTMBs1YMzztbXoYSk dAS2miv4SmZ0FrI0e2xmhSJkRA== X-Received: by 2002:a81:7541:: with SMTP id q62-v6mr11734630ywc.84.1525289808425; Wed, 02 May 2018 12:36:48 -0700 (PDT) Received: from localhost ([2620:0:1013:11:ad55:b1db:adfe:3b9f]) by smtp.gmail.com with ESMTPSA id s20-v6sm4543242ywg.83.2018.05.02.12.36.47 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 02 May 2018 12:36:47 -0700 (PDT) Date: Wed, 2 May 2018 15:36:46 -0400 From: Sean Paul To: dri-devel@lists.freedesktop.org Cc: Sean Paul , Rob Herring , Maxime Ripard , Archit Taneja , Andrzej Hajda , Laurent Pinchart , stable@vger.kernel.org, David Airlie , linux-kernel@vger.kernel.org Subject: Re: [PATCH] drm/bridge: vga-dac: Fix edid memory leak Message-ID: <20180502193646.GT73214@art_vandelay> References: <20180420190007.1572-1-seanpaul@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180420190007.1572-1-seanpaul@chromium.org> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 20, 2018 at 02:59:59PM -0400, Sean Paul wrote: > edid should be freed once it's finished being used. > > Fixes: 56fe8b6f4991 ("drm/bridge: Add RGB to VGA bridge support") > Cc: Rob Herring > Cc: Sean Paul > Cc: Maxime Ripard > Cc: Archit Taneja > Cc: Andrzej Hajda > Cc: Laurent Pinchart > Cc: # v4.9+ > Signed-off-by: Sean Paul Applied to -misc-fixes with review tags. Sean > --- > drivers/gpu/drm/bridge/dumb-vga-dac.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/bridge/dumb-vga-dac.c b/drivers/gpu/drm/bridge/dumb-vga-dac.c > index 498d5948d1a8..9837c8d69e69 100644 > --- a/drivers/gpu/drm/bridge/dumb-vga-dac.c > +++ b/drivers/gpu/drm/bridge/dumb-vga-dac.c > @@ -56,7 +56,9 @@ static int dumb_vga_get_modes(struct drm_connector *connector) > } > > drm_mode_connector_update_edid_property(connector, edid); > - return drm_add_edid_modes(connector, edid); > + ret = drm_add_edid_modes(connector, edid); > + kfree(edid); > + return ret; > > fallback: > /* > -- > Sean Paul, Software Engineer, Google / Chromium OS > -- Sean Paul, Software Engineer, Google / Chromium OS