Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp833505ybt; Fri, 10 Jul 2020 13:40:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx+xRv4GPAtYFJKqy+KEw043zzDyoPXaFPef9tXRsK7pUZQqqX5ZTk2/n4FUCG6w3jTV2T3 X-Received: by 2002:aa7:d04a:: with SMTP id n10mr81461471edo.132.1594413659625; Fri, 10 Jul 2020 13:40:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594413659; cv=none; d=google.com; s=arc-20160816; b=cEcXpz0zWDIsSKU1TRcClJaooTxhdhXXrlFKaQTw6MKyMNi6+HAqEOraU9G1uYhnlB LDYNjg9RXQLIilmJ4mLePH/oKNVRYKgrpr3AZGlfBBuTmNz4Hrldjy2H5fpf5MsYTSM4 gzW/wfK8LFv6Ra2YQQcNYhIpNJIvXdCGenTqRz/AvNjv8BoLBGGWH/R/SJBTnEU/Dj4r 7x/Mir0jtvkyuwXWU3mkYRFm04OSUNkr80popEhsZYQ8Y/ZSy2HGKWuyXcYEkMkAeg4M 31X0ZcDTYKUR/RoEu0OzPyyRXLCa6uJVDFk2oR7UNk5iY9F1NXEco53XRjlieWiE5lME 0CPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=eOMT1EbzmMVOlBWJXe5pFrEanuc12PSjuBnbId11L/Y=; b=RZ5q5RGP0X8+LyG48voi9Ny7kF49DiOEKzdE5HqaXhApDpN6Uw3SAynQgMNwWGWWjP mYowXLAgb7+N7Yw6oQUH9KepSzo7iaFWH8iIWqhSkojIg1VE/164XVDMr8ej9GXOOmsV KaRBU6Z8P9kQee7CrBZiLF1alLIEn7J8wvDSYED/6XNDKiNNoFVG8qeCQjxWLDIBPYqA MOa6YMgwvuWMEd/ohW0VN92lW8mOwrW9J/T5ZXT8oDdswa0XxDHyLBvDbyu8lvYq+tMY e4KMca5ZQ4I4pKso7/1ZGydX04A03pKS2zGU8Ho886HS9ySIJATl+7eOTQVOdkVBvrC3 BF+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WMqhd1hn; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bl24si4261717ejb.602.2020.07.10.13.40.36; Fri, 10 Jul 2020 13:40:59 -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=@gmail.com header.s=20161025 header.b=WMqhd1hn; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727086AbgGJUiJ (ORCPT + 99 others); Fri, 10 Jul 2020 16:38:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44402 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726828AbgGJUiI (ORCPT ); Fri, 10 Jul 2020 16:38:08 -0400 Received: from mail-pg1-x542.google.com (mail-pg1-x542.google.com [IPv6:2607:f8b0:4864:20::542]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 18626C08C5DC; Fri, 10 Jul 2020 13:38:08 -0700 (PDT) Received: by mail-pg1-x542.google.com with SMTP id g67so3016754pgc.8; Fri, 10 Jul 2020 13:38:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=eOMT1EbzmMVOlBWJXe5pFrEanuc12PSjuBnbId11L/Y=; b=WMqhd1hnf35pMXF8dLTTXWv+IvBbSRqyz33IHtL2mvT5qHhWfVCk5MBTiTRtE79htb fm4f1SWrUCloR73Tr84FgluDvj2MsofFTCO8NrUYI9BLrd8S59fCGEwl71aIysWqhEd8 Vk7DMIQvQm2d8VZK5KU8/0aEjfrZXTkhaEHFWWyTEMFaUvd4uckgvPUjffTCbo7YibkZ BXx1z4IxNnmHYTR6PSbB8NSYfJLIA7Ftj6ptBf6Sjw3cClZDFW75ZQJ8lA+JBmEqgWcr Cg7SOJzcwcbYRuNnAyv58BnT7e3nFxlsvZRQv4QCzc9h9k5hOdNcu4ITSRudELVxHwTV +tOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=eOMT1EbzmMVOlBWJXe5pFrEanuc12PSjuBnbId11L/Y=; b=pZMPT8sTmeHpiYitqyhReB3eylCm5H1iMTJM3QMClALRag5b6Ot4eLovfqc8NVhflh va2Ap+z8GJAOjWJYC/HAwNvB/tvRD7bVYxhqTqa2bmp4tQeSm4zyi8ZIFAHZZuygLpXQ rJBsFI8bQjeFsT8I5XPG9XtC06T+jjeotVobLYv6cnAPvczPddf36mcX3O9e4SoZQLJK PDX+1ul00a/yQanfrRJONtnphYMazROsfC+cfj52LCitJAFZkdzQEXI1O4fOwo8Gomr1 dhyrm0zX9J+5R4ZZ+N/HUfdOT+wQXo2JIoeaKzx7DQboqrWZQ1kW6fZHzJX1Mi/Yd7k3 CpAQ== X-Gm-Message-State: AOAM5306siSRzKe1cHIPCiK31TBDD2FNffgnrsRUeA8QZVZevVnIjn+y x/tpRUojDYhtayJrPZWbYV66Ucr7oiWdJu9M9PbI0g15NPI= X-Received: by 2002:a63:924b:: with SMTP id s11mr58089154pgn.74.1594413487485; Fri, 10 Jul 2020 13:38:07 -0700 (PDT) MIME-Version: 1.0 References: <1594373418-24833-1-git-send-email-luwei32@huawei.com> In-Reply-To: <1594373418-24833-1-git-send-email-luwei32@huawei.com> From: Andy Shevchenko Date: Fri, 10 Jul 2020 23:37:51 +0300 Message-ID: Subject: Re: [PATCH v3 0/2] Fix return value check To: Lu Wei Cc: Alex Hung , Darren Hart , Andy Shevchenko , Platform Driver , Linux Kernel Mailing List , AceLan Kao Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 10, 2020 at 12:28 PM Lu Wei wrote: > > In the function check_acpi_dev(), if it fails to create > platform device, the return value is ERR_PTR() or NULL. > Thus it must use IS_ERR_OR_NULL to check return value. > Pushed to my review and testing queue, thanks! > --- > v2->v3 > - Modify format > v3->v4 > - Change commit number to 12 characters > > Lu Wei (2): > intel-hid: Fix return value check in check_acpi_dev() > intel-vbtn: Fix return value check in check_acpi_dev() > > drivers/platform/x86/intel-hid.c | 2 +- > drivers/platform/x86/intel-vbtn.c | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > -- > 2.7.4 > -- With Best Regards, Andy Shevchenko