Received: by 10.192.165.148 with SMTP id m20csp1133762imm; Sat, 21 Apr 2018 01:51:19 -0700 (PDT) X-Google-Smtp-Source: AIpwx48srOFgCE0dtAH0aRsID2tsUx7zLCuMt2kSD8gMmQUr9M4hfnJmT2pS5S+WiyiEOt32Qpz8 X-Received: by 2002:a17:902:51ee:: with SMTP id y101-v6mr12675249plh.359.1524300679592; Sat, 21 Apr 2018 01:51:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524300679; cv=none; d=google.com; s=arc-20160816; b=K6WGO+hVJQeiy7NHbMlr1DEBWOMXQP/G/zsi1Fj59rH8IKncIDlJLTryhmKTkOPG1K X+mPjDptZLJsLY4q6CWR0WhfzbtTkoZ85gB3gSc0raHCHY421an/5m4+3EyaUYPkFVo+ JvDuf11rbSNCxbpGI31WDvR4oJTP6thvG2S+nx3pbXEGHh7NeGN38AVAvbgdgkIG8qyH 5545DYyvDlXhAE+H/xLe7arBDdH5BIraZy9nLpFgvy9kA3Z1ppjpCM4kADcs/BHwDSe+ e3ZjR+C7uVfDNnLzQ4fnbjDtZ2KkVzJA2Pn6v0pMs03VSm53Z6ZirJNBfmVMXXYFUZYU tCow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:organization:message-id:date:subject:cc:to :from:dkim-signature:arc-authentication-results; bh=anLBYXzm6LB6SuBCmTHJYMumIZMc+mfPFESzb/M8BBM=; b=t0TaWKjiyHohVZN3h+zgWShOfRPc9x8Tf4/gNj9r+bJyIAoNe3EFmnziZuGkb5YF2K k5U/32MGBkm6P5qgQPZHlLqDTqR3VKd9/HyJYzDX1gfLNeBjz7yOsrtjRyyJ0L6O3QCl pZXt5l0rQtN0opvjGM1jTvvs7dDYu6WnmhC7d/cMKe4j9U9wrtrfqGOGseQQcqGEl/rC UKEDSh0peH9BpT9UGeh+whjmwaEf7Pid/z8AC3R6y7iLxY5kDzqN8dmz9LQzezRCkOi9 DaUdb9OQSz0v+D4Njg+0ek/+n4ZTpTphevJFFX6LnSpcNkpRLTlHdLoKAp3NbXw1K9qg 1Njw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=LjzJ73DD; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y11si6284082pgq.435.2018.04.21.01.50.41; Sat, 21 Apr 2018 01:51:19 -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 (test mode) header.i=@ideasonboard.com header.s=mail header.b=LjzJ73DD; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752771AbeDUIrh (ORCPT + 99 others); Sat, 21 Apr 2018 04:47:37 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:59728 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751373AbeDUIrf (ORCPT ); Sat, 21 Apr 2018 04:47:35 -0400 Received: from avalon.localnet (dfj612ybrt5fhg77mgycy-3.rev.dnainternet.fi [IPv6:2001:14ba:21f5:5b00:2e86:4862:ef6a:2804]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 001AE4D36; Sat, 21 Apr 2018 10:47:32 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1524300453; bh=7jMCyOCvirsWe6KfaelJzb/A5HM/OwierJJD6I2CLRw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LjzJ73DD50/B5RajaS9N526I2dZh6XQCJyZtmW1OX8R5NO+kJhZhOqe882YuLNwzH NXiCqk07qsw4ByHzUmxJdgAw+/8M88zBNIIBipFD5neNv+7862r6AGJzTP2SHXhFui wbYX98tR4K9jM2QyDd7y4dZMvjD6Su2EaIezxrtM= From: Laurent Pinchart To: Sean Paul Cc: dri-devel@lists.freedesktop.org, Rob Herring , Maxime Ripard , Archit Taneja , Andrzej Hajda , stable@vger.kernel.org, David Airlie , linux-kernel@vger.kernel.org Subject: Re: [PATCH] drm/bridge: vga-dac: Fix edid memory leak Date: Sat, 21 Apr 2018 11:47:45 +0300 Message-ID: <6932041.eDZ2n7hNsz@avalon> Organization: Ideas on Board Oy In-Reply-To: <20180420190007.1572-1-seanpaul@chromium.org> References: <20180420190007.1572-1-seanpaul@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Sean, Thank you for the patch. On Friday, 20 April 2018 21:59:59 EEST 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 Reviewed-by: Laurent Pinchart > --- > 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: > /* -- Regards, Laurent Pinchart