Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5347315rwb; Mon, 14 Nov 2022 03:20:40 -0800 (PST) X-Google-Smtp-Source: AA0mqf7+FJe6NwO9t4AUsJqdajj5Gc+CG/+V1JE7MomC05b0b2gu5GjB8czJuyWkrWsBawR8SfF0 X-Received: by 2002:a17:906:1583:b0:7ad:923a:b849 with SMTP id k3-20020a170906158300b007ad923ab849mr9886750ejd.677.1668424840205; Mon, 14 Nov 2022 03:20:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668424840; cv=none; d=google.com; s=arc-20160816; b=ORvlfm6d7m9pEZKl6IDp2nrknLqVNVsZTLLGhLL1XojQmIuTPO1jj8nk/oQD8fLByx DpkT3CXU3FMONMKNAkQsmk5AaT4PC6zKU1HO9YEAPBjip/OdpHUZ3mnG3Sxwp3wWHGZa zXKVCD8gRxSC6VpWWsqeME7sKnY6L2sinRzwzcySZrBIUQGD4R50VlEFMBYIjywOwrBJ yWhGluoD+xu5xXSwTWV3hgzST5p4niQ/JJd81F9pIDgolK86OlkcZ2cXJ18eeOtgKOon jvGY7N+j1pdk7PtUMMWRCyra428KwZs5JwnTgAmPlkvRTyu3IYMsSi79lpB5tT7iQS4H wp+A== 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 :mime-version:user-agent:date:message-id:from:references:cc:to :subject; bh=XUYVlrE+V9ZsZnbV/+jOrN6XWJKIb53Ns6B1NUBkgto=; b=FEuugezBGZ+LlHuVG8U80Ero+V3m3cn25UUty0dOjpC7gcEhZsBfoxchd28yMhcU14 jngznsNCU34mtQHHLlWxGRy1ffvbYxvKJSG972bJZ2ad2DvdkEcu5uhta5Hq41KUc+kZ 4o7XrAbopzpFjjf56BJLqyHcFrowGZZW+2F7+Ata+kTPcXupgU2J+JxH0KAZGLjU1JkP jdN1qnV3HCiQM/6dFe+3m0p5TUR9ipyAybapnBzwQqDTe/ehykMJszQ9M1g/GV6jWITX XQO50SwRUSGPvEojI88Hri7/nteSwzlyWKQeT+5JIaRZDNdLJc2FOVOzwFSf2xADFf/d z0ig== 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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sh18-20020a1709076e9200b0078e11e9286csi5542046ejc.195.2022.11.14.03.20.17; Mon, 14 Nov 2022 03:20:40 -0800 (PST) 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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236278AbiKNLP4 (ORCPT + 89 others); Mon, 14 Nov 2022 06:15:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42062 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236651AbiKNLPG (ORCPT ); Mon, 14 Nov 2022 06:15:06 -0500 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0101C29E for ; Mon, 14 Nov 2022 03:11:18 -0800 (PST) Received: from kwepemi500012.china.huawei.com (unknown [172.30.72.56]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4N9mnt1cJ3z15MZK; Mon, 14 Nov 2022 19:10:58 +0800 (CST) Received: from [10.67.110.176] (10.67.110.176) by kwepemi500012.china.huawei.com (7.221.188.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Mon, 14 Nov 2022 19:11:16 +0800 Subject: Re: [PATCH] firmware: stratix10-svc: Fix IS_ERR() vs NULL check in stratix10_svc_drv_probe() To: Greg KH CC: , , , References: <20221114025921.1194834-1-cuigaosheng1@huawei.com> From: cuigaosheng Message-ID: <4cb8207d-e2c1-b459-e456-d8998f8180c8@huawei.com> Date: Mon, 14 Nov 2022 19:11:16 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.110.176] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To kwepemi500012.china.huawei.com (7.221.188.12) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS 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 > How was this found and tested? Thanks for taking time to review this patch. I found this through the cocci script, I made the patch based on the code logic, but I have not tested it due to the lack of hardware devices. On 2022/11/14 15:24, Greg KH wrote: > On Mon, Nov 14, 2022 at 10:59:21AM +0800, Gaosheng Cui wrote: >> The svc_create_memory_pool() returns an ERR_PTR() on failure, we should use >> IS_ERR() to check the return value, and return it on failure. > How was this found and tested? > > thanks, > > greg k-h > .