From patchwork Tue May 11 08:28:39 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhen Lei X-Patchwork-Id: 434168 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp3609405jao; Tue, 11 May 2021 01:29:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxnlY6CVQFXqy6REmViyKO+wrD1jjxf+I57pMrXdNbgloAO6b00oZtk7vPY337iSFoDDRtH X-Received: by 2002:a17:90a:5304:: with SMTP id x4mr31673297pjh.221.1620721753157; Tue, 11 May 2021 01:29:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620721753; cv=none; d=google.com; s=arc-20160816; b=AhDjVXofpi0YioTsaRJ/70eXWGgSIWHLLoCuifu1hfeimaXLvf2Bycgp7KjLZ4vT5D 5SvfbcAl767VF5Uujqfpk1pk+v6LK9kkIlkflyjn/8hXqPrI24mlMfyMyeRo+SmpMVzK 5snZyAt3Ud0mThMqsaa46QmQvF+F772Cr1rrqi+DJN0gOHURO0xXIox862iasL+jjFYF I1WIGt7B8YRTINWHlv3+qmE9Okbikvn+7CuBXVYjEeKxHbAYpSeo8lXG2mpGUfFpNtyy nRyIq/FVLiBpIdd1PDFwZNSvqMncLRC0ysG8Ub6Xr7docrN6cVV9dpLPt0hFAiDYWQCP nisQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:to:from:delivered-to; bh=RBs+tN/BPmNb/6zo67TBxGlp76I1FwLLxq8ocrhugvQ=; b=G7fJFcQdhUTvXbe1Dyru+VfTEcHvQZsodUcn+bOqacvIs+pwRJw/3ByPeuJDuxwsYF TESv7g9qgJAbfRP55VK5pSYJ8GQqtyfg8qy/vJJvdFp/gNizaLWLND/xrFoCdKlf8ss8 4T5Z4/ULHsQ/1LqCLyw/2UCg3YyItgMAbuK3HHgxV+4hfmxeZkNSHLNbvoc1KLp5k/he c/feSFRXHAEWUH1zh6DYzJjVE6BSeWMK8+/BYjGgbWCpiLCQ/435enTp+lCj5nFnbA3e sJDYJLs17sVSlYPN+toIOyZW0wOi25b8NoTZWKIyLoYRsWrtVDUm3orwCjWw25ofXIYg PHuQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id a81si16446291pfa.124.2021.05.11.01.29.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 May 2021 01:29:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4D5F86E51B; Tue, 11 May 2021 08:29:07 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from szxga06-in.huawei.com (szxga06-in.huawei.com [45.249.212.32]) by gabe.freedesktop.org (Postfix) with ESMTPS id 09C0D89FC8; Tue, 11 May 2021 08:29:06 +0000 (UTC) Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4FfWHK1TtTzlZXh; Tue, 11 May 2021 16:26:53 +0800 (CST) Received: from thunder-town.china.huawei.com (10.174.177.72) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.498.0; Tue, 11 May 2021 16:28:55 +0800 From: Zhen Lei To: Ben Skeggs , David Airlie , "Daniel Vetter" , Pierre Moreau , dri-devel , nouveau Subject: [PATCH v2 0/2] Fix ida leak and error return code Date: Tue, 11 May 2021 16:28:39 +0800 Message-ID: <20210511082841.4181-1-thunder.leizhen@huawei.com> X-Mailer: git-send-email 2.26.0.windows.1 MIME-Version: 1.0 X-Originating-IP: [10.174.177.72] X-CFilter-Loop: Reflected X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Zhen Lei Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" v1 --> v2: 1. Add Patch 1 to fix ida leak 2. Modifies nouveau_get_backlight_name() to propagate the actual error code Zhen Lei (2): drm/nouveau: Fix ida leak drm/nouveau: Fix error return code in nouveau_backlight_init() drivers/gpu/drm/nouveau/nouveau_backlight.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) -- 2.26.0.106.g9fadedd