[PATCH 0/2]Fix NULL pointer and doing cleanup

Junhao He posted 2 patches 2 years, 10 months ago
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(-)
[PATCH 0/2]Fix NULL pointer and doing cleanup
Posted by Junhao He 2 years, 10 months ago
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
Re: [PATCH 0/2]Fix NULL pointer and doing cleanup
Posted by Will Deacon 2 years, 9 months ago
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,
-- 
Will

https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev