summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts.py
diff options
context:
space:
mode:
authorAbdelrahman Fekry <abdelrahmanfekry375@gmail.com>2025-06-28 08:25:36 +0300
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2025-07-08 08:43:33 +0200
commitbd290dddb0d74b3cd34d2cca15d66105dc4a00d4 (patch)
tree9a05fa0997fb3189c7a7fe40dcf22ac16c2885f1 /tools/perf/scripts/python/syscall-counts.py
parent5e2330ef08f4d7c7692ee55d272c0bb489258915 (diff)
downloadkernel-bd290dddb0d74b3cd34d2cca15d66105dc4a00d4.tar.gz
media: atomisp: Fix premature setting of HMM_BO_DEVICE_INITED flag
The HMM_BO_DEVICE_INITED flag was being set in hmm_bo_device_init() before key initialization steps like kmem_cache_create(), kmem_cache_alloc(), and __bo_init(). This means that if any of these steps fail, the flag remains set, misleading other parts of the driver (e.g. hmm_bo_alloc()) into thinking the device is initialized. This could lead to undefined behavior or invalid memory use. Additionally, since __bo_init() is called from inside hmm_bo_device_init() after the flag was already set, its internal check for HMM_BO_DEVICE_INITED is redundant. - Move the flag assignment to the end after all allocations succeed. - Remove redundant check of the flag inside __bo_init() See the link [1] below for a backtrace which happens when deliberately triggering the problem of the flag getting set too early. Link: https://lore.kernel.org/linux-media/CAGn2d8ONZpOHXex8kjeUDgRPiMqKp8vZ=xhGbEDGphV1t7ZEFw@mail.gmail.com/ [1] Signed-off-by: Abdelrahman Fekry <abdelrahmanfekry375@gmail.com> Link: https://lore.kernel.org/r/20250628052536.43737-1-abdelrahmanfekry375@gmail.com Reviewed-by: Hans de Goede <hansg@kernel.org> Signed-off-by: Hans de Goede <hansg@kernel.org> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions
spmu: Add support for ARM CoreSight PMU driverBesar Wicaksono 2022-10-07drivers/perf: ALIBABA_UNCORE_DRW_PMU should depend on ACPIGeert Uytterhoeven 2022-09-22drivers/perf: add DDR Sub-System Driveway PMU driver for Yitian 710 SoCShuai Xue 2022-04-04perf: MARVELL_CN10K_DDR_PMU should depend on ARCH_THUNDERGeert Uytterhoeven 2022-03-25Merge tag 'riscv-for-linus-5.18-mw0' of git://git.kernel.org/pub/scm/linux/ke...Linus Torvalds 2022-03-21RISC-V: Add perf platform driver based on SBI PMU extensionAtish Patra 2022-03-21RISC-V: Add a simple platform driver for RISC-V legacy perfAtish Patra 2022-03-21RISC-V: Add a perf core library for pmu driversAtish Patra 2022-03-08Merge branch 'for-next/perf-m1' into for-next/perfWill Deacon 2022-03-08drivers/perf: Add Apple icestorm/firestorm CPU PMU driverMarc Zyngier 2022-03-08perf/marvell: cn10k DDR perf event core ownershipBharat Bhushan 2022-02-08perf: MARVELL_CN10K_TAD_PMU should depend on ARCH_THUNDERGeert Uytterhoeven 2021-12-14Merge branch 'for-next/perf-cn10k' into for-next/perfWill Deacon 2021-12-14drivers: perf: Add LLC-TAD perf counter supportBhaskara Budiredla 2021-12-14perf/arm-cmn: Drop compile-test restrictionRobin Murphy 2021-10-04drivers/perf: Improve build test coverageJohn Garry