Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4212406rwl; Mon, 3 Apr 2023 01:21:22 -0700 (PDT) X-Google-Smtp-Source: AKy350bflLOcqhZHgLGak950ay2YFzn3YdaOz3wtLZIhV3mCobAVIi6DopWIJnS3XCrG8MibD0Rl X-Received: by 2002:a17:906:facb:b0:93b:752:d2a9 with SMTP id lu11-20020a170906facb00b0093b0752d2a9mr34233083ejb.31.1680510082650; Mon, 03 Apr 2023 01:21:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680510082; cv=none; d=google.com; s=arc-20160816; b=Fy/0sDTZl4Ps2pVKAouKZ6DChUpVVtHCEtge2jyn8XN7eT4rtUKD4KBFx7CvPqiHyh JU/SKu2b7IGLe4hxyWlACLLUfJFkmW4f6kv63ivsVMeR0GFSovrMRfDnvB5WFZH/TqAF AhRR1akoPt1eTNv9XMhQXFg18NqW0XhYxc3t0jEi+Sm7F17MlNDDw56nwi+pWFGTIiCa UoS3UKYs4X/sWpaOCnlvp7MrOJlBBnUI0L0yR7YcaouVgDYtZW+nfBRS2MbK0jrn2QUk pFFXF4ktt52iLeOdmsmhBGsBaPFNUPvO8XgWZiTRt9eUILLNTjy1qNqhDZUkj6qG22j0 /r0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=dXeI+/6J/0hHs3X7HGl4utVLxEFIxiYVWmH1lhZHI4A=; b=UAFtrX0yu6euQmHfXzbGFyykc57tzE7KDQO1QBLcO/lzELXc/iIc6gAYsZFJgH3Q1K 1X2FQZI0sLNAeMDUw5yB4qrZRycZ20TAmWAo9wigXa0i+iPo7UlO6KE21TYtx1bCk0vA 80O+FhSF4zuGtJJD81LWWgBQy1+Ns9yieBbkRpecAXiUB/1Qu2f5aXAQmzuNcIrfPTl2 /2QBgTtZW82pOVmT5ElEep2HQMFX6h2jt7KTwz9KO239LJkTnHGyFRWWORQGWNhHyZ+X C008ht/8J9hZ0J7bwX/njVZPCcFjIJfbQmwweysbmRPczJtTYZmxmfZjGQqwVyNHAVcj rtNg== 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 y22-20020a170906559600b0093e18eb2c07si6971941ejp.227.2023.04.03.01.20.58; Mon, 03 Apr 2023 01:21:22 -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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230522AbjDCIPm (ORCPT + 99 others); Mon, 3 Apr 2023 04:15:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37006 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229498AbjDCIPl (ORCPT ); Mon, 3 Apr 2023 04:15:41 -0400 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1BE744ECB for ; Mon, 3 Apr 2023 01:15:39 -0700 (PDT) Received: from dggpeml500002.china.huawei.com (unknown [172.30.72.57]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4PqkC35NVQz17PNM; Mon, 3 Apr 2023 16:12:15 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by dggpeml500002.china.huawei.com (7.185.36.158) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Mon, 3 Apr 2023 16:15:37 +0800 From: Junhao He To: , , , CC: , , , , , , , , Subject: [PATCH 0/2]Fix NULL pointer and doing cleanup Date: Mon, 3 Apr 2023 16:14:21 +0800 Message-ID: <20230403081423.62460-1-hejunhao3@huawei.com> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.69.192.56] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To dggpeml500002.china.huawei.com (7.185.36.158) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 Fix NULL pointer and cleanup redundant initialized. Junhao He (2): drivers/perf: hisi: Remove redundant initialized of pmu->name drivers/perf: hisi: add NULL check for name drivers/perf/hisilicon/hisi_uncore_cpa_pmu.c | 2 +- drivers/perf/hisilicon/hisi_uncore_ddrc_pmu.c | 19 +++++++++++-------- drivers/perf/hisilicon/hisi_uncore_hha_pmu.c | 9 ++++++--- drivers/perf/hisilicon/hisi_uncore_l3c_pmu.c | 13 ++++++------- drivers/perf/hisilicon/hisi_uncore_pa_pmu.c | 2 +- drivers/perf/hisilicon/hisi_uncore_pmu.c | 4 +--- drivers/perf/hisilicon/hisi_uncore_pmu.h | 3 +-- drivers/perf/hisilicon/hisi_uncore_sllc_pmu.c | 2 +- 8 files changed, 28 insertions(+), 26 deletions(-) -- 2.33.0