Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp1214671pxx; Tue, 27 Oct 2020 10:54:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzq5FX7erZwNbXwL6Rixoh4gkqDJ9n43g+nvwtOIreqgRP+M4wHysEsbVlKwSMk/Hs+Nimo X-Received: by 2002:a17:906:714b:: with SMTP id z11mr3520369ejj.139.1603821241614; Tue, 27 Oct 2020 10:54:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603821241; cv=none; d=google.com; s=arc-20160816; b=njX6ton8s/wgw5T4TFfX/RW84VIqhVa1zszs1Lq8wBnz7YN9manvZJhzrzVKvHP5lj 7HGn2w2N44xY1q6TOUDQu59TzsEKRfeagjwd49F1Js0rah6EOV4nvp7kfUh12NBuSvgd OVcbTHDkbH8KPQQity9wYMk20vMzqs57mADpIlXYg4x/UlISOVKIeRZ0eZuPkYsoWnIr +4ZAYJup23oABOvXamc6ZyLdNh7BUHNkpZIs5DN8zChYV8cWJ3OIWZ4omd2EzZb2poFn kzjHfO+MM3hINpCxk8n3a25WjZjsm3ogR0gKx6Q462zm5Tp/sybyvejS++K43cZ4pRFv Fr5Q== 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=V1trAx2RfDsGnSHyxJYn5Q7nZJ/w5PR9Ktuekx3ImpY=; b=e59waGwfw46SgGC45/JHoiuWHC0m5pSXlQD8XZw4e557OtoRoy8/5urIAvchHTz6Xy 9YVhEBHzHxNOAfk7wM6mUEmJbP+xaJuusLlE6AU8q4xFWGoV3hS+mCv9IR5ysXZ7ywfH 1s4GpT4XHTVoYGlcX74JNYg4+W5aQvLdiDPoT+7/LC1KKP8fSRx3XtjMcAg0KwWPPv4/ ZLYsKAA2+rFzWWxMIfZxOX1xzgkodClywJvtO4kRr7TKlYxK3uec3tQJFt+G6PA/C7hW zLWSLNg1tzUD1fmVzRp5t8zycduiOx+CgoSh01BawIBD6XfZV+AAuUYyK9BEtLeajLB9 49jw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=X6nBbV1z; 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=fail (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 lz27si1487804ejb.481.2020.10.27.10.53.39; Tue, 27 Oct 2020 10:54:01 -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=@kernel.org header.s=default header.b=X6nBbV1z; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1818734AbgJ0RXE (ORCPT + 99 others); Tue, 27 Oct 2020 13:23:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:55406 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1780636AbgJ0Oyv (ORCPT ); Tue, 27 Oct 2020 10:54:51 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7703722281; Tue, 27 Oct 2020 14:54:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603810491; bh=1X/jCoMbl/5xlyFG9JHlN0BAfLyG77Zfppy5G3tRG14=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=X6nBbV1zicevEIS1ptn7UtMVPbXiAtdM7ucKB+TCX8WbjCs85UYUlZ92Jf6hD99os JsWtgzZsEHnjoeUvV4E64de0zvRGXTmrx6k58tEE35ftRznkwQ+dD7ih1t2vFdqysl mdvNXj/ukOI8Dp3Zgy6jFAlJctaiDgOfMguv2i04= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Qinglang Miao , Daniel Vetter , Sasha Levin Subject: [PATCH 5.8 158/633] drm/vgem: add missing platform_device_unregister() in vgem_init() Date: Tue, 27 Oct 2020 14:48:21 +0100 Message-Id: <20201027135530.089449357@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135522.655719020@linuxfoundation.org> References: <20201027135522.655719020@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: Qinglang Miao [ Upstream commit 57fb54082d5d14512dfd21bc39d91945d3ad1ee9 ] When vgem_init() get into out_put, the unregister call of vgem_device->platform is missing. So add it before return. Fixes: 363de9e7d4f6 ("drm/vgem: Use drmm_add_final_kfree") Signed-off-by: Qinglang Miao Signed-off-by: Daniel Vetter Link: https://patchwork.freedesktop.org/patch/msgid/20200810125942.186637-1-miaoqinglang@huawei.com Signed-off-by: Sasha Levin --- drivers/gpu/drm/vgem/vgem_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/vgem/vgem_drv.c b/drivers/gpu/drm/vgem/vgem_drv.c index fa39d140adc6c..94825ec3a09d8 100644 --- a/drivers/gpu/drm/vgem/vgem_drv.c +++ b/drivers/gpu/drm/vgem/vgem_drv.c @@ -471,8 +471,8 @@ static int __init vgem_init(void) out_put: drm_dev_put(&vgem_device->drm); + platform_device_unregister(vgem_device->platform); return ret; - out_unregister: platform_device_unregister(vgem_device->platform); out_free: -- 2.25.1