Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp2172443rwb; Thu, 27 Jul 2023 03:19:56 -0700 (PDT) X-Google-Smtp-Source: APBJJlFFDwQFnMZDBkRaitznp8n/NtEd4q9TpEgWJHGeinMM8C+Hp3zLFLtzTjQOlQYXhRj2IAK6 X-Received: by 2002:a05:6a20:1395:b0:132:965d:5323 with SMTP id hn21-20020a056a20139500b00132965d5323mr4076307pzc.33.1690453195756; Thu, 27 Jul 2023 03:19:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690453195; cv=none; d=google.com; s=arc-20160816; b=X6XuWam5U0+1WBj/UIE1EvuM5yZR53gYgVLWTokcIh3/xmvNsB7ZHwZhGq6nSNcuuc C3/w5on7Gl5RJc/61EjbQnbFj0FEQD9d/f7Z6AJOdPxtlygek5azV8Gn7BjBqmWF42yB j643xHYze3L8kpkqEN+n0aR28oxnX+ZxCkMgb/Grph76NqzyOh8EIDu81+UUulVI+le3 rbmjWv7mkkFtXyUbd1wf8uLKNSVnHjIoY7/FYMNNwb9CdPCVx4ZlI97hK1r5FjTXEw15 l9cowHb6Mgth7AZHUkcUY43t6Cpz+PnrcQqxJA8qOYgN0b6jO/+zt616/h3l5HvMKQlp zlhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :content-language:references:cc:to:from:subject:user-agent :mime-version:date:message-id; bh=At0BSFL/L8T9whqbfZObPZC1dIlM9TqF0ucSQp/rIzY=; fh=4sH54QzlYY7Qr4k8Z6fFe4D/fuQyVx5HKJjbkrtewk0=; b=bjH047pp3QAxpWqWvYDNYDaRdieH91m8wLBrffYSv0gemzDZLg6NW3WWftGEcwByl5 fv6AoEd98gGBu0WX1A3phFtHo+Nf0oUoYoSKv3i+nhbU/TZGMmKSx6DAK74N6Fa+Deia klCWDS3luiC7pqqllpMtb32Ps5Y6BCd5EawkABANUB2s710JlhQo4O/SbV2uS4IRSdEJ 5hw/zj2hhhn5Iuy+pT80oGCDgyCmXdF4u9WBc6ihnXv4OOV/vcTZQ0VB6C8IqgGoLs0p pDDvIKI4uFuc02b+YsQr/SX8u2DWUSA/4JVrki2bSz1lSQYY1UbJijGKRvrKhysHDess Nj3g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p35-20020a056a000a2300b006863085981esi1208077pfh.68.2023.07.27.03.19.44; Thu, 27 Jul 2023 03:19:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231880AbjG0KDN (ORCPT + 99 others); Thu, 27 Jul 2023 06:03:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42752 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231671AbjG0KDL (ORCPT ); Thu, 27 Jul 2023 06:03:11 -0400 Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C7CC9128; Thu, 27 Jul 2023 03:03:08 -0700 (PDT) Received: from loongson.cn (unknown [10.20.42.43]) by gateway (Coremail) with SMTP id _____8DxqOrbQMJkUqwKAA--.17105S3; Thu, 27 Jul 2023 18:03:07 +0800 (CST) Received: from [10.20.42.43] (unknown [10.20.42.43]) by localhost.localdomain (Coremail) with SMTP id AQAAf8DxzM7OQMJkkus8AA--.31968S3; Thu, 27 Jul 2023 18:03:07 +0800 (CST) Message-ID: <3dd819d8-69a1-f2e0-de53-5a4b2a6dd39d@loongson.cn> Date: Thu, 27 Jul 2023 18:02:54 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [1/2] drm/tegra: Return an error code if fails From: suijingfeng To: Thierry Reding , Mikko Perttunen , David Airlie , Daniel Vetter , Jonathan Hunter Cc: linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org References: <20230626143331.640454-1-suijingfeng@loongson.cn> Content-Language: en-US In-Reply-To: <20230626143331.640454-1-suijingfeng@loongson.cn> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-CM-TRANSID: AQAAf8DxzM7OQMJkkus8AA--.31968S3 X-CM-SenderInfo: xvxlyxpqjiv03j6o00pqjv00gofq/ X-Coremail-Antispam: 1Uk129KBj9xXoW7Gw1rCF17Xr17trWUuFWfWFX_yoWxKFcEkw 109rWxW34xuF4DWF1qyry3ZryayF95uF4xX39av34fGw17Zr18X34UuryUu3W3JF13GF9x t3yqqFn0y3Z3GosvyTuYvTs0mTUanT9S1TB71UUUUUJqnTZGkaVYY2UrUUUUj1kv1TuYvT s0mT0YCTnIWjqI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9fnUUI cSsGvfJTRUUUbfAYFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I6I8E6xAIw20EY4v20x vaj40_Wr0E3s1l1IIY67AEw4v_Jrv_JF1l8cAvFVAK0II2c7xJM28CjxkF64kEwVA0rcxS w2x7M28EF7xvwVC0I7IYx2IY67AKxVW5JVW7JwA2z4x0Y4vE2Ix0cI8IcVCY1x0267AKxV W8JVWxJwA2z4x0Y4vEx4A2jsIE14v26r4UJVWxJr1l84ACjcxK6I8E87Iv6xkF7I0E14v2 6F4UJVW0owAaw2AFwI0_Jrv_JF1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqjxCEc2xF0c Ia020Ex4CE44I27wAqx4xG64xvF2IEw4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_Jw0_ WrylYx0Ex4A2jsIE14v26r4j6F4UMcvjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvEwIxGrw CYjI0SjxkI62AI1cAE67vIY487MxAIw28IcxkI7VAKI48JMxC20s026xCaFVCjc4AY6r1j 6r4UMxCIbckI1I0E14v26r1Y6r17MI8I3I0E5I8CrVAFwI0_Jr0_Jr4lx2IqxVCjr7xvwV AFwI0_JrI_JrWlx4CE17CEb7AF67AKxVWUtVW8ZwCIc40Y0x0EwIxGrwCI42IY6xIIjxv2 0xvE14v26r4j6ryUMIIF0xvE2Ix0cI8IcVCY1x0267AKxVW8JVWxJwCI42IY6xAIw20EY4 v20xvaj40_Jr0_JF4lIxAIcVC2z280aVAFwI0_Gr0_Cr1lIxAIcVC2z280aVCY1x0267AK xVW8JVW8JrUvcSsGvfC2KfnxnUUI43ZEXa7IU8EeHDUUUUU== X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Gentle ping for this series. On 2023/6/26 22:33, Sui Jingfeng wrote: > Return -ENOMEM if tegra_bo_mmap() fails. > > Signed-off-by: Sui Jingfeng > --- > drivers/gpu/drm/tegra/gem.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/gpu/drm/tegra/gem.c b/drivers/gpu/drm/tegra/gem.c > index dea38892d6e6..0ce22935fbd3 100644 > --- a/drivers/gpu/drm/tegra/gem.c > +++ b/drivers/gpu/drm/tegra/gem.c > @@ -710,6 +710,8 @@ static int tegra_gem_prime_vmap(struct dma_buf *buf, struct iosys_map *map) > void *vaddr; > > vaddr = tegra_bo_mmap(&bo->base); > + if (!vaddr) > + return -ENOMEM; > if (IS_ERR(vaddr)) > return PTR_ERR(vaddr); >