Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp712923pxv; Thu, 15 Jul 2021 14:11:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwpCN7l1Ounp6KL3wfej7/14FvqQp0/ee+8fTgfXpHRKsWxqaq4AEJYscQkeUumEfpOfVZQ X-Received: by 2002:a05:6402:1218:: with SMTP id c24mr9661689edw.59.1626383497416; Thu, 15 Jul 2021 14:11:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626383497; cv=none; d=google.com; s=arc-20160816; b=WyDyWm0xILXMuW1gvASYhYNFFoPd5k8kohYtwfvTcHmh1wbbfRGE5aCYx0bBbm7qkL dY5f18hiGmYjo6yt3fCxktf+sQKEfcysu2g69+TBPTx3T16HmS5c+gDju1DG7/3dJax1 q4+7t5+Dg8y94xTDcDBET9W82apovRWku5tY7hhLalgeEm2L4e+MXYMNwjfEoTaSirLv Uzl7f/sQ1LoiDoA0UYduy7qwSOALxpmOjqmfk+Gbr0ouzK5vjA7zeQ30ZEQdZUS0mTrQ t6jXhBLe/QKZOTd6eG4Jga+5V3ITaYUbBOV5dHjy5QwDPJof+mhDEGwJLar9RlsfXkt3 H4iQ== 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=mvb0JbA7tOYe7lfWbkqOPvQzyZq3PxNLGwDNySNV2dg=; b=gmh/QO6SrFeEVEb5Q1CDKDzof/GV+7O4U4H1UqgRGC6txOLbjuVuX9YrH4Kb86BEKo cVrQx0JrUfSopiBl3A/6c/PCkikEYt09+ClxnuiCFkw6XojbSMqnbgEd97wGt5NMXaFo cimvh2LJDcag8fopEhCiGPxSgJbYSXd/ayjzKf6LojaBlqoOt9VJNaLpkke9jF9a2Fjx Qn+QeHLhyN9cMx6vl8SG7jICsrhgxHPYnObUeJRnIxNLQeYEXdCCmuvKfDez7XP9qks7 +XmhtHNcfPnylKbfmoeY+ybqyGLIrSIcJ9n0HirrZnslEAVcw7lXuh6Y8wubzySFdbjA 9kOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=wVZ3Cb8V; 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 bq7si5933144ejb.576.2021.07.15.14.11.13; Thu, 15 Jul 2021 14:11:37 -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=wVZ3Cb8V; 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 S244393AbhGOTVq (ORCPT + 99 others); Thu, 15 Jul 2021 15:21:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:39500 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242786AbhGOTFn (ORCPT ); Thu, 15 Jul 2021 15:05:43 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D972D613D8; Thu, 15 Jul 2021 19:02:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626375722; bh=gM0qQjh02t3B7lTxHS0YCfVSk5RMjCGn9lYfp+b94e0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=wVZ3Cb8Va8l6IvYUSnt8dKJR6ZSwYPOOxGHDUR9MfNM1AhLpWFFn2VHbVbRaTvfpE UpVbUCYL08X0jyE5v9URTbW1Auj1WfsCf0TwICU54WXcgH1CzVfBFF+KvDz9Q/ZPUG Z72hnBOpGCa67SIHlyv+3kRa1Me/xEHvk7yJ8uKE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, =?UTF-8?q?Christian=20K=C3=B6nig?= , Jing Xiangfeng , Alex Deucher Subject: [PATCH 5.12 166/242] drm/radeon: Add the missed drm_gem_object_put() in radeon_user_framebuffer_create() Date: Thu, 15 Jul 2021 20:38:48 +0200 Message-Id: <20210715182622.537861911@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210715182551.731989182@linuxfoundation.org> References: <20210715182551.731989182@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: Jing Xiangfeng commit 9ba85914c36c8fed9bf3e8b69c0782908c1247b7 upstream. radeon_user_framebuffer_create() misses to call drm_gem_object_put() in an error path. Add the missed function call to fix it. Reviewed-by: Christian König Signed-off-by: Jing Xiangfeng Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/radeon/radeon_display.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/gpu/drm/radeon/radeon_display.c +++ b/drivers/gpu/drm/radeon/radeon_display.c @@ -1325,6 +1325,7 @@ radeon_user_framebuffer_create(struct dr /* Handle is imported dma-buf, so cannot be migrated to VRAM for scanout */ if (obj->import_attach) { DRM_DEBUG_KMS("Cannot create framebuffer from imported dma_buf\n"); + drm_gem_object_put(obj); return ERR_PTR(-EINVAL); }