linux-bl808/drivers/perf
Takashi Iwai 06236821ae perf: arm-ccn: Use scnprintf() for robustness
snprintf() is a hard-to-use function, it's especially difficult to use
it for concatenating substrings in a buffer with a limited size.
Since snprintf() returns the would-be-output size, not the actual
size, the subsequent use of snprintf() may point to the incorrect
position easily.  Although the current code doesn't actually overflow
the buffer, it's an incorrect usage.

This patch replaces such snprintf() calls with a safer version,
scnprintf().

Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Will Deacon <will@kernel.org>
2020-03-17 22:45:56 +00:00
..
hisilicon drivers/perf: hisi: Simplify hisi_read_sccl_and_ccl_id and its comment 2020-01-10 15:58:57 +00:00
arm-cci.c perf/arm-cci: use devm_platform_ioremap_resource() to simplify code 2019-10-01 12:28:47 +01:00
arm-ccn.c perf: arm-ccn: Use scnprintf() for robustness 2020-03-17 22:45:56 +00:00
arm_dsu_pmu.c
arm_pmu.c
arm_pmu_acpi.c
arm_pmu_platform.c
arm_smmuv3_pmu.c perf/smmuv3: Use platform_get_irq_optional() for wired interrupt 2020-02-10 18:14:46 +00:00
arm_spe_pmu.c perf: arm_spe: Remove unnecessary zero check on 'nr_pages' 2020-03-02 11:27:21 +00:00
fsl_imx8_ddr_perf.c perf/imx_ddr: Fix cpu hotplug state cleanup 2020-01-15 12:48:40 +00:00
Kconfig
Makefile
qcom_l2_pmu.c
qcom_l3_pmu.c
thunderx2_pmu.c drivers/perf: Add CCPI2 PMU support in ThunderX2 UNCORE driver. 2019-10-29 10:08:46 +00:00
xgene_pmu.c