Message ID | 20230403081423.62460-1-hejunhao3@huawei.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2145876vqo; Mon, 3 Apr 2023 01:33:39 -0700 (PDT) X-Google-Smtp-Source: AKy350Z7hDj3LKpHT04jweqJlo95kwRFM8COGG4GSnPwS3BPo6APacGv3/xcnI7jIteh+yzoS0O8 X-Received: by 2002:a62:5245:0:b0:627:ff1d:db6d with SMTP id g66-20020a625245000000b00627ff1ddb6dmr33003641pfb.21.1680510819531; Mon, 03 Apr 2023 01:33:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680510819; cv=none; d=google.com; s=arc-20160816; b=fbl15mZFgEyZyHdN2eyUbSqGdu2EVLcTBENQzsjavcF90zrp658P+EAFPAYNX+MvS7 ikhQ1g7yw86VOOZwLrY1/ctsgKDtc9sV8q4G2jqmat4XkEJMczN8+oOU5C4MMMae/JK5 vCGrkj8HqjnrqTL4inzWSsphOnR9I9tQ/m+EVsv+DatfaS5NnKg1z3taE4sEsHQQhpMN PmCAV+mZd/2mjI+Wl+H7OdNAeDDot+g6W9QipZMOxrJe3FqGyDagyIVmn4+kzrfPt0HT 6rAyIxvaf+7nVTqlsoiL/IpXNMkXMgjJhHuNjA2hrGO1r/S92NwiWggAGbd0t0wvo+Xy 1r3g== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d13-20020a631d0d000000b005034a5a0a58si7321337pgd.434.2023.04.03.01.33.27; Mon, 03 Apr 2023 01:33:39 -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 S231202AbjDCIPm (ORCPT <rfc822;winker.wchi@gmail.com> + 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 <rfc822;linux-kernel@vger.kernel.org>); 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 <linux-kernel@vger.kernel.org>; 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 <hejunhao3@huawei.com> To: <jonathan.cameron@huawei.com>, <will@kernel.org>, <linux-kernel@vger.kernel.org>, <mark.rutland@arm.com> CC: <linux-arm-kernel@lists.infradead.org>, <catalin.marinas@arm.com>, <kernel-team@android.com>, <linuxarm@huawei.com>, <yangyicong@huawei.com>, <f.fangjian@huawei.com>, <shenyang39@huawei.com>, <prime.zeng@hisilicon.com>, <hejunhao3@huawei.com> 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762143313190072776?= X-GMAIL-MSGID: =?utf-8?q?1762143313190072776?= |
Series |
Fix NULL pointer and doing cleanup
|
|
Message
hejunhao
April 3, 2023, 8:14 a.m. UTC
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(-)
Comments
On Mon, 3 Apr 2023 16:14:21 +0800, Junhao He wrote: > 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(-) > > [...] Applied to will (for-next/perf), thanks! [1/2] drivers/perf: hisi: Remove redundant initialized of pmu->name https://git.kernel.org/will/c/25d8c25025a4 [2/2] drivers/perf: hisi: add NULL check for name https://git.kernel.org/will/c/257aedb72e73 Cheers,