]> git.ipfire.org Git - thirdparty/linux.git/commit
perf/cxlpmu: Fix devm_kcalloc() argument order in cxl_pmu_probe()
authorAlok Tiwari <alok.a.tiwari@oracle.com>
Tue, 24 Jun 2025 19:43:38 +0000 (12:43 -0700)
committerWill Deacon <will@kernel.org>
Mon, 14 Jul 2025 12:36:27 +0000 (13:36 +0100)
commit6ae58c74e7aa9aa6045d82996caa482ef2fdfbc4
tree50b40c0ae3cea70b635ec88a491b5d4ebb39e5e1
parentba2ff3e1b640ca7aa0841be3dae94daa6b60bf49
perf/cxlpmu: Fix devm_kcalloc() argument order in cxl_pmu_probe()

The previous code mistakenly swapped the count and size parameters.
This fix corrects the argument order in devm_kcalloc() to follow the
conventional count, size form, avoiding potential confusion or bugs.

Signed-off-by: Alok Tiwari <alok.a.tiwari@oracle.com>
Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com>
Link: https://lore.kernel.org/r/20250624194350.109790-2-alok.a.tiwari@oracle.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/perf/cxl_pmu.c