]> Git Repo - linux.git/commit - drivers/perf/arm_dsu_pmu.c
perf: dsu: Use signed field for dsu_pmu->num_counters
authorSuzuki K Poulose <[email protected]>
Mon, 15 Jan 2018 10:51:16 +0000 (10:51 +0000)
committerCatalin Marinas <[email protected]>
Mon, 15 Jan 2018 18:02:17 +0000 (18:02 +0000)
commita22fde8e979494f326e88ef0728367e009260d75
treebb0d3c26f09d67eb46c1dbbb59ac969fcebd97d1
parent67948af41f2e6818edeeba5182811c704d484949
perf: dsu: Use signed field for dsu_pmu->num_counters

We set dsu_pmu->num_counters to -1, when the DSU is allocated
but not initialised when none of the CPUs are active in the DSU.
However, we use an unsigned field for num_counters. Switch this
to a signed field.

Fixes: 7520fa99246d ("perf: ARM DynamIQ Shared Unit PMU support")
Reported-by: Dan Carpenter <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Will Deacon <[email protected]>
Signed-off-by: Suzuki K Poulose <[email protected]>
Signed-off-by: Catalin Marinas <[email protected]>
drivers/perf/arm_dsu_pmu.c
This page took 0.054118 seconds and 4 git commands to generate.