diff options
author | Mark Rutland <Mark.Rutland@arm.com> | 2013-01-18 13:42:58 +0000 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2013-01-18 13:46:09 +0000 |
commit | 76b8a0e4c8bda5f03574b8a904331266d162c796 (patch) | |
tree | 1a525b2b01ed5e18a1d2a6f444b141b09c7d8292 /drivers/scsi/mpt2sas/mpi/mpi2_raid.h | |
parent | 40c390c768f898497e17d934f6715d516ff67294 (diff) |
ARM: perf: handle armpmu_register failing
Currently perf_pmu_register may fail for several reasons (e.g. being
unable to allocate memory for the struct device it associates with each
PMU), and while any error is propagated by armpmu_register, it is
ignored by cpu_pmu_device_probe and not propagated to the caller. This
also results in a leak of a struct arm_pmu.
This patch adds cleanup if armpmu_register fails, and updates the info
messages to better differentiate this type of failure from a failure to
probe the PMU type from the hardware or dt.
Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'drivers/scsi/mpt2sas/mpi/mpi2_raid.h')
0 files changed, 0 insertions, 0 deletions