linux/drivers/hwtracing
Lin Yujun 9688b66d0a coresight: Fix incorrect handling for return value of devm_kzalloc
[ Upstream commit 70714eb724 ]

The return value of devm_kzalloc could be an null pointer,
use "!desc.pdata" to fix incorrect handling return value
of devm_kzalloc.

Fixes: 4277f035d2 ("coresight: trbe: Add a representative coresight_platform_data for TRBE")
Signed-off-by: Lin Yujun <linyujun809@h-partners.com>
Reviewed-by: James Clark <james.clark@linaro.org>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Link: https://lore.kernel.org/r/20250908122022.1315399-1-linyujun809@h-partners.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2025-10-15 12:04:07 +02:00
..
coresight coresight: Fix incorrect handling for return value of devm_kzalloc 2025-10-15 12:04:07 +02:00
intel_th mm: remove callers of pfn_t functionality 2025-07-09 22:42:19 -07:00
ptt hwtracing: hisi_ptt: Assign parent for event_source device 2024-05-02 11:36:11 +01:00
stm stm class: heartbeat: Switch to use hrtimer_setup() 2025-02-18 11:19:05 +01:00
Kconfig hwtracing: hisi_ptt: Add trace function support for HiSilicon PCIe Tune and Trace device 2022-09-08 16:26:17 -06:00