From: Mark Rutland Date: Fri, 18 Jan 2013 13:42:58 +0000 (+0000) Subject: ARM: perf: handle armpmu_register failing X-Git-Tag: v3.9-rc1~115^2~11^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=76b8a0e4c8bda5f03574b8a904331266d162c796;p=pandora-kernel.git 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 Signed-off-by: Will Deacon --- Reading git-diff-tree failed