Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp379612ybt; Fri, 10 Jul 2020 02:09:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx4sKsSGAR4QL2GG4eTGpQCObh5kdoKOPw3JeuY5NxaMn5Oal51MeCjSPWVhiHzYK5DJQl7 X-Received: by 2002:a05:6402:1ad9:: with SMTP id ba25mr44656925edb.74.1594372172676; Fri, 10 Jul 2020 02:09:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594372172; cv=none; d=google.com; s=arc-20160816; b=NMtzhm7BzKM/G1G9jljRCZwmULPGiZGBGalx+o9gVUEFhcRMhuDl02N3ASRFlO1fJl m3jqIBYqUg/sKfNXhs0Od5fMhaDU6dEnLicnHGI8SLoDzOK9Z8bLqMDMST0nqQBYIK7/ 5UbEm1aSluC5ZGYU5sEGHVxjiUEbKcf/YfoFgi4m7qEDYgq/+xJ4B4PPwj2m80VboBX7 ALeDW/veoTHhx/UpSJgHUUKwQXAEUGCZJ2ZlvbLSknDWugkhBV3loaBv4a6S6b61xJmP 1jD2iCDby8FkLWdjbUrb7zb4+h5TseKztAxfEpUStq3gS6HpuGA8EfpG4I8V/iwd8l33 KOAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:to :from; bh=Y29kZUiuvCsOGntH7OhFusC1ilEOCFBG7bObzcVl0JA=; b=FgRsvfH4tWP+tos/hwa3aai6aau5Eton/39SxUfrqsGxrzLRJwmNxjPw83gaX+Ab7t zNSv1jIjkYKAg2v6JxzWRA/O0mNzRRb5enlK8fjEY8nwagFeoOGOW+37uYnoPJPfZJem LE3BGe6FgTsLy6EJLgs8pp819w1SxM2h0dMc4lnfoHAIdxW7taB2jS5iEsNkxHLIxpJC UgsOVIX9nk7hbNNnJcGtqXGkclkwfx491LYe3njmhUueO6i0Gd/b0cHFexNEYc5h0iT5 9otmUs1xYeLbrsFQoi2cSgm6v84Z4g8YEMsYaLoOHeWs46pX1jSWv0ktUi8g5SOzZl3v 60Ig== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w22si3528420eju.670.2020.07.10.02.09.09; Fri, 10 Jul 2020 02:09:32 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727851AbgGJJFm (ORCPT + 99 others); Fri, 10 Jul 2020 05:05:42 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:7292 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727818AbgGJJFm (ORCPT ); Fri, 10 Jul 2020 05:05:42 -0400 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 7C9362584F401E791179; Fri, 10 Jul 2020 17:02:41 +0800 (CST) Received: from huawei.com (10.175.104.57) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.487.0; Fri, 10 Jul 2020 17:02:31 +0800 From: Lu Wei To: , , , , , , , Subject: [PATCH v3 0/2] Fix return value check Date: Fri, 10 Jul 2020 17:04:21 +0800 Message-ID: <1594371863-20827-1-git-send-email-luwei32@huawei.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.104.57] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. *** BLURB HERE *** 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