Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3681188pxv; Mon, 26 Jul 2021 09:16:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxlmFBRtU8Y4HVbiJx+ErN5z/3S3r0xHEZHJfMxnUy4qu0jkAmi6F8QppcHN2qDDrNsKXVw X-Received: by 2002:a5e:c006:: with SMTP id u6mr15698516iol.66.1627316182376; Mon, 26 Jul 2021 09:16:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627316182; cv=none; d=google.com; s=arc-20160816; b=km2ICUR4HjWnNPzfV+pRzjtsQeUxKx1YBbKDu+fSdzmPUG9OMssP9HC9hzoyXTyVI1 hUdGMrDVBFQiQWfHhU33yh68RXbokMwFSdDi8f7rQEIX7DUihMXqqH6ZxHWYuP6m7UTl qRSVm6slcqDwOdaPIlIRE+O5ULjZukwrrCzK91EjAZdreYBokj2cy0yyPu0wt0Pw/LvR bfKuXHaao3Nqou1HLSM6pGJG+b88qfGgYK3gJJuDmACF1y0z4G/LJ9sV6Q7dJutDiWlk cKKhGYFBrJPBy8Mol8mh90PHzF7B4Y5WLDuWxjzlu1YQY9aa27rwU9hZHKii0cepGY0d /XeQ== 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=2u2OLBGpojhUxP0vqS5br9FiZ90pUzERqy50JUuFMhM=; b=oqgym6f3fQ43yTjZDMh7kXoRKK55Z6cm9Udd5SQNoYBj6aiCmLMz8/tIJ1v/SCDXU5 43OPDhU9W1FAKsow00ApRLWjnEviGTbHC3OiQEKdDndkiQz4ETND6fcaLxqdpi/h5jo2 pmppm+KzXbRXVzAGj40k7qcGg50lWAN6y59SNRo6mzm8DumNiW4GdPAhuadODq8mbTjH pkHwqi/fkvu2nntRxyxjDPjAP7UeSYOPXuBIJ64bYHMTceXA3zM6fVqiwc0PVe0telLv tCGWxKBaZoNL9cVyW0NFJEzXhGTgCAGUwhZBCqi9OzDTu/1LEt6us9jy5UvGuZHpZUam Uf4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="st/pNzG0"; 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 g14si295145jaj.31.2021.07.26.09.16.09; Mon, 26 Jul 2021 09:16:22 -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="st/pNzG0"; 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 S234824AbhGZPd7 (ORCPT + 99 others); Mon, 26 Jul 2021 11:33:59 -0400 Received: from mail.kernel.org ([198.145.29.99]:60054 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236609AbhGZPTH (ORCPT ); Mon, 26 Jul 2021 11:19:07 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C942560F6E; Mon, 26 Jul 2021 15:59:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1627315175; bh=olJvFdMxbt3wMLmS/bfiTseS4BVIvIa66jJPgdVTTns=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=st/pNzG0NkIYcJRe1DJKN2LitLhHS9bkhemzrMDaLAz96Mxk1pmejbUIKmHj6jwwM DXYn3NewMN6xll31aHH/8JfMEeH913sdgheuJEwKPgUfoTv+i+eDxg+giX/kLhbPL2 5SyP9uhAf3/RxunlS8ntfPiSaeP97DUjLsACHctI= 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.4 067/108] drm/panel: raspberrypi-touchscreen: Prevent double-free Date: Mon, 26 Jul 2021 17:39:08 +0200 Message-Id: <20210726153833.844180608@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210726153831.696295003@linuxfoundation.org> References: <20210726153831.696295003@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 2aa89eaecf6f..bdb4d59c8127 100644 --- a/drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c +++ b/drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c @@ -453,7 +453,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