Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp634168pxv; Thu, 15 Jul 2021 12:04:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwjO5NUqsecH1uXvoHR98ZOyF4XvhdcV2dptPjMv2TpyxiEhiLg8soyvSpoypzFPJbvwbgo X-Received: by 2002:a05:6402:51c7:: with SMTP id r7mr9445500edd.150.1626375843935; Thu, 15 Jul 2021 12:04:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626375843; cv=none; d=google.com; s=arc-20160816; b=L8vEwiTK6NQ0H+6VS72C+URUHcNIK9E88Gp/vDQrGoN3zY0DAW77CCESwEUxZkZTg/ fP0czaXsN3rOtnIpCHcOscjMET1M17ajFQ7INqpNVlN24MnngPpNCb5GSUNbny1g4Lpb lMkRntWT7QY/n8bbL6/bgEBAbvhn73geylSDnbF1qqW6NR1qcGtZR8u5EBklgvKXvOyF E62G5FtjnEXbQ6vmZUdv0QzgbRfsgTDMTThfPdoIxY4iMc3MaYBT4UyfghoX44SK7E6P nCaz+VkxiUqrLkZul0N1EN3Wi18anovx7tIHGks7NlN8Pg6F35fuEsmX4n7DCrEjTTXF YiFw== 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=+CofZADPvSypLgihnPNnevppIZpL9CoqmF+IlyWASjs=; b=bbhzswvR3HP31dbb+wfx8c7A4zTANakTD+l6Dsq7sPg2/+zw50yBg36Ecv1phB2zGB AaWq5xIOI98puW1OuoEOFKNbUY0g7/nvSYSpmytRRU/zmjyNd3vfXA7ilCBX0ZL/fd5d HL+vFOrSdOtiWhF55yaMOj1xBfOv9aWUPaW9bm0G6DxKISkk5WuOAP1NLWYXjP3/dYqv avKbaIGZJl+g6i0HlsHjGHmy6LwSVeaaIP4DZdv4H4Hvu+Eooncv5drip1NAlYH1chSE JIOcp+OGKDpiV0i3iP5blPt50BWscVY9MDO2xPr4+gR/ZPtXyvqFLXiOYHBZ40A94hae 3aXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=VFwG8utk; 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 s11si4820060ejr.369.2021.07.15.12.03.39; Thu, 15 Jul 2021 12:04:03 -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=VFwG8utk; 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 S242323AbhGOTFL (ORCPT + 99 others); Thu, 15 Jul 2021 15:05:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:60090 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241769AbhGOSzz (ORCPT ); Thu, 15 Jul 2021 14:55:55 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0D222613D0; Thu, 15 Jul 2021 18:53:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626375181; bh=gNsi4EIxhYmRpvHNddMeznVhuB3sZHL0WArFcs/Ycwc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VFwG8utkogu6eshh+jb/UDmkuA80WcCxACNNgmONdC12A+IvSB7WCa3jq6kjvt+um 3V0xRyvVd+hdqg6uk86FJJhzxYIIYYFbzR9VNXAUN/hq6Caesv1zkHgQaktSeE+C1i ubg34OYUQaV3hjHaKQecJdVTtUxoq6VG62qT/l2o= 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.10 151/215] drm/radeon: Add the missed drm_gem_object_put() in radeon_user_framebuffer_create() Date: Thu, 15 Jul 2021 20:38:43 +0200 Message-Id: <20210715182626.291774548@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210715182558.381078833@linuxfoundation.org> References: <20210715182558.381078833@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 @@ -1334,6 +1334,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); }