Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp657980pxv; Thu, 15 Jul 2021 12:41:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwq9ttroXUL/h/0RUyaVzt+yFzHjpKkB1Zw0x7XxlN6yWK61MBKypI765lY2Fd+J2gK8zYB X-Received: by 2002:a05:6e02:1529:: with SMTP id i9mr3677766ilu.163.1626378084196; Thu, 15 Jul 2021 12:41:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626378084; cv=none; d=google.com; s=arc-20160816; b=N2kzN/gU6USQ9Q579+21nbfIlJxyNeG6xDA/NbfOtp457fmW8WQ2XFvOcPPrw8TxQq zGe8rItPDCaShayLJ1RTEdDgRLhwTKDjYzJQu0r/k0Mh+Ijb8+SdoeF1bfcTnugGr+3F 0P9KQC2gU0D2hXG72iF036tr1pQBmiRTY6wEpOQlVHiGekXzyttQlJhGfZzs4g/8bWe9 ngLq3NZl32k4R7As8PcrVaHtdfJ2YPdmD3dXlcoccvhJqyBYHIcYbj15wZWyoTG7XjXA IybMPmundBdEVCuG2EsbNS4bujCQmx30mtHasiItIrJP0c3X60kU7FDQFqKKpBSXGnzm hvPQ== 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=JAlQRyPhx+sRaRP5IFd6uFjsBnfONawrNS5SOw1O5LoNpuQ0kD/QxovL6Kgoljttcp y1PJBcAO90/NOZtDk2AdjcnC1MRW2ORpWEKvnijwsnG5TQ9MYhF0a7cF+ACBRBceio91 ez6ejAS24/9IUKOKdVAte3gxcieMOoyWmsF2WliuTvQ3jmG+YNYjOVf6j+9IjTP7KctY /GCYHVzIlVYeAXmxft4FpG7NCE5yq/FXvYERWi1EKe+D8d7hvSkBU91QrlamKZeT/4v+ AfQ21FKF5Co06F/WQTR59nYe8QdkugkkumjXN5hOeAARDGt+EJIYx4A3NHAUShOKw+zC c5vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Fqvg3+LD; 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 x12si7549763ila.97.2021.07.15.12.41.11; Thu, 15 Jul 2021 12:41:24 -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=Fqvg3+LD; 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 S243828AbhGOTli (ORCPT + 99 others); Thu, 15 Jul 2021 15:41:38 -0400 Received: from mail.kernel.org ([198.145.29.99]:51194 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244626AbhGOTO7 (ORCPT ); Thu, 15 Jul 2021 15:14:59 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3093361403; Thu, 15 Jul 2021 19:10:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626376250; bh=gM0qQjh02t3B7lTxHS0YCfVSk5RMjCGn9lYfp+b94e0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Fqvg3+LDE/iOFHuxCMr+bMqbKMBzvKfCgOc/AUbUBf8VVAE4zi5faA2FSHbhS4nHf 9PU3YPXhAuEM0+sq8hIat5M1k4goXVfGpLLMqiM/F55tQGZXleFbC7wnKqWzmHaxJP Lqw76dj7bi+yKjRKFr8vnUeNRf36u6mB06O3uUDg= 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.13 190/266] drm/radeon: Add the missed drm_gem_object_put() in radeon_user_framebuffer_create() Date: Thu, 15 Jul 2021 20:39:05 +0200 Message-Id: <20210715182644.525275517@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210715182613.933608881@linuxfoundation.org> References: <20210715182613.933608881@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); }