Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3714771pxv; Mon, 26 Jul 2021 10:04:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwOQ+2lkvi4fO4XVyBdhSVd1Y84N0PKYhNh0bsjrsDDaoFVVXpbLLZvovKTSd4gFzhM68ef X-Received: by 2002:a92:c503:: with SMTP id r3mr13977141ilg.148.1627319067109; Mon, 26 Jul 2021 10:04:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627319067; cv=none; d=google.com; s=arc-20160816; b=Luc0zbaVqbfKxrHryvTlbpsgnKfPrrfUOWCEZTfxCICY3juNQBduUE6OFF/Xm68T6j uYM7kEGOHHsmTycnOcfXylkUG+CBSAcmRs2CG5nlikjGvgWWvxQjiODOR6cziAVREFu2 6BNLj2EbxXuqXfkQAVYkhMQiBzPAnMXIEFxj0tYN7f6PzGHEcaRwzDCwr1Y2JYa4v5Ul tAIskD8lPFNncUQNiEvIDXbnAbi9v5gUdihBOWUcwNcMDi8OzL8A1EDiHMt1M5BisPln IO/S59CpVx7c7H/a7kDRgzr4QVio8RWX/3iRUloWFT2blgdn/MwAP9H2/maXgSGzYk+F 8kLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=2EKrdrMTzPQ2/5Az7+v71sHPQRYkzdMBOUHe9gKjTug=; b=Dij/TGbr0pRFvGYLG9QZLipq5bKNKbr2tdd2UOZveNTTmbJUdCJiQXEv/5+M8kqavb HHVyPb4qsvj8wpKAlqPqO+GXlN5GQIl/BpqfBmUg8bh1ccofCLA2CDXtoPE3zlntEpt8 aQkmYXgOczLv3d+03kw8X+lBLVttqNxLtJcd2DAdSRlQBDvoxR1MvwszlTS1t0i5bA7Q 2RyBweKkAE5LZ9allHwizDXo2S33cXkgTmiu4D8K0eadNvojik5Q4umoipuSzXuH/Q1Y ZMEPhBJHYLpThryJ+q/yDl2kdjxSkkSm7j0DgMRFzbNH+YiZkzDAqiZ0MbWMw0PWiBgj SNHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=z7+n1Gyq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f17si444699ion.28.2021.07.26.10.04.15; Mon, 26 Jul 2021 10:04:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=z7+n1Gyq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238400AbhGZPml (ORCPT + 99 others); Mon, 26 Jul 2021 11:42:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:39060 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237665AbhGZPXr (ORCPT ); Mon, 26 Jul 2021 11:23:47 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8043D60240; Mon, 26 Jul 2021 16:04:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1627315455; bh=iSwOT2IT+TSQ1I5FcDSRN5RdQNVGYfJh0K9Qw2Q7QZQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=z7+n1GyqzVCyZfKxOXLAXGh1PSrTrruLTRuC3LA7hPSFp/e35bpIY72PtXMLA/9wl uIxM5RhfGetUhecXQLqGC/0rHIPIweyluBi7M170ywvzOU3NjyhDEbPU2f/YS3A6iQ DCL6MWI7Nt/uOdyUuzTnLdw54xQwns0l2CzDo1BI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Maxime Ripard , Sam Ravnborg , Sasha Levin Subject: [PATCH 5.10 102/167] drm/panel: raspberrypi-touchscreen: Prevent double-free Date: Mon, 26 Jul 2021 17:38:55 +0200 Message-Id: <20210726153842.816196979@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210726153839.371771838@linuxfoundation.org> References: <20210726153839.371771838@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Maxime Ripard [ Upstream commit 7bbcb919e32d776ca8ddce08abb391ab92eef6a9 ] The mipi_dsi_device allocated by mipi_dsi_device_register_full() is already free'd on release. Fixes: 2f733d6194bd ("drm/panel: Add support for the Raspberry Pi 7" Touchscreen.") Signed-off-by: Maxime Ripard Reviewed-by: Sam Ravnborg Link: https://patchwork.freedesktop.org/patch/msgid/20210720134525.563936-9-maxime@cerno.tech Signed-off-by: Sasha Levin --- drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c b/drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c index 5e9ccefb88f6..bbdd086be7f5 100644 --- a/drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c +++ b/drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c @@ -447,7 +447,6 @@ static int rpi_touchscreen_remove(struct i2c_client *i2c) drm_panel_remove(&ts->base); mipi_dsi_device_unregister(ts->dsi); - kfree(ts->dsi); return 0; } -- 2.30.2